有没有办法查看运行Apache实例正在使用解决任何/所有包括之后使用的最终“有效”configuration? 我正在查看一个configuration,它包含一个包含networking的Web,并且怀疑我遇到的一些问题与所有事情的顺序有关。 我认为这是apachectl,可以validationconfiguration没有语法错误,但我想知道如果我可以进一步,并以某种方式输出完全组装的configuration。 任何build议(清理这个混乱包括应该永远不会被允许发生)?
我有一个与vhostconfiguration运行的apache实例,这里是httpd.conf: #Listen {the_server_ip}:80 Listen 80 # <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot /var/www/example.com ServerName example.com ServerAlias www.example.com ErrorLog logs/example.com-error_log CustomLog logs/example.com-access_log common </VirtualHost> 这是/ etc / hosts中的logging: 127.0.0.1 example.com www.example.com 服务器正在运行并正在侦听: Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 :::80 :::* LISTEN 8756/httpd 这是来自服务器的CURL请求: [root @ localhost示例]#curl -I http://example.com/index.html HTTP/1.1 200 […]
我只是做了一个基础安装和Apache 2.4启动就好了。 我正在从运行Apache 2.2的旧服务器迁移。 当我把一个文件放到/etc/httpd/conf.d ,并且包含一个VirtualHost定义并重启服务器,它就会在启动时崩溃。 这个VirtualHost定义是我以前的服务器使用的。 # systemctl restart httpd.service Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details. # systemctl -l status httpd.service ● httpd.service – The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) […]
我正在尝试使用自签名证书在Apache上设置HTTPS。 但是,而不是显示页面,我得到了一堆奇怪的错误。 从每个浏览器的一个不同的错误! 从Chrome浏览器: 错误2(net :: ERR_FAILED):未知错误。 从Firefox: SSL收到的logging超出了允许的最大长度。 (错误代码:ssl_error_rx_record_too_long) 我遵循http://slacksite.com/apache/certificate.php上详细介绍的步骤以及其他约4个指南。 他们都是一样的,但都给出了相同的结果。 所以我一定在做错事。 简而言之,这就是我所做的: 生成服务器密钥: openssl genrsa -des3 -out server.key 1024 生成CSR: openssl req -new -key server.key -out server.csr [在生成请求时,我小心地input我的实际主机名作为“通用名称(例如,您的名字或您的服务器的主机名)”] 从密钥中删除密码: cp server.key server.key.org openssl rsa -in server.key.org -out server.key 自签名证书: openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt configurationApache以指向这些文件,并使用这些证书。 有任何想法吗? 更新:这是我的虚拟主机configuration: […]
我读了所有以前的答案,但我无法解决我的问题..我正在更改我的网站托pipe的服务器,我再次设置Apache ..现在,安装PHP后,fail2ban等我有这个问题: service httpd start Avvio di httpd: Syntax error on line 292 of /etc/httpd/conf/httpd.conf: DocumentRoot must be a directory [FALLITO] 我已经禁用了selinux并重新启动,但没有发生任何事情.. sestatus SELinux status: disabled 在其他答案我阅读后张贴..但我不知道这是什么,但我看到它是非常不同于我看到.. ls -laZ /var/www/html/ drwxr-xr-x root root ? . drwxr-xr-x root root ? .. drwxr-xr-x root root ? form 显然我的httpd.conf DocumentRoot "/var/www/html” 我需要的是 DocumentRoot "/var/www/html/form” 现在用默认的root不起作用,但是在编辑一些文件之前(我不记得是哪个),它开始正确。 我希望你能帮助我..我使用仙6.5 x64 ..非常感谢 […]
我正在RHEL6框中设置SSL,并且在查找有关configuration根CA的信息时遇到问题。 我有四个文件: cert.crt – 我的SSL证书 my_key.key – 用于请求/生成证书的密钥 CorpDomain.cer – 我的公司给我的文件,这是一个ASCIItesting文件 CorpServices.cer – 我的公司给我的文件,这是一个二进制文件 在/etc/httpd/conf.d/ssl.conf我有以下几点: SSLCertificateFile /etc/pki/tls/certs/cert.crt SSLCertificateKeyFile /etc/pki/tls/private/my_key.key #SSLCertificateChainFile #SSLCACertificateFile 我公司颁发证书时收到的电子邮件中说: 安装相关证书链非常重要。 对于您请求的证书,您需要两个根CA: CorpDomain.cer CorpServices.cer 如果您不知道如何安装该链,则可以在平台文档中find说明。 现在,我想我需要连接CorpDomain.cer和CorpServices.cer ,但是CorpServices.cer是一个二进制文件,而httpd似乎并不满意它自己…我已经看过文档,这似乎暗示我需要更多地了解我的证书,但是,上面的电子邮件是我所有的信息,而发布它的部门拒绝提供帮助。
我宁愿没有 ServerAdmin 在我的VirtualHost,因为它只是吸引垃圾邮件。 没有用过的东西。 可以忽略吗?
我们的服务器closures了,我们重新调整了服务(nginx&httpd),当我查看日志时,我发现这些行,有很多Graceful restart requested, doing restart行,最新的错误? 我有像下面的100行 [Tue Nov 10 03:35:12.421652 2015] [mpm_prefork:notice] [pid 60224] AH00163: Apache/2.4.6 (CentOS) PHP/5.6.7 mod_apreq2-20090110/2.8.0 mod_perl/2.0.9dev Perl/v5.16.3 configured — resuming normal operations [Tue Nov 10 03:35:12.421669 2015] [core:notice] [pid 60224] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND' JPEG datastream contains no image JPEG datastream contains no image JPEG datastream contains no image […]
我花了将近一天的时间,尝试着为我的公司和社会制作ALPN和http2支持EL6和EL7的Apache httpd版本,正如我之前对NGINX (静态构build的OpenSSL 1.0.2h)所做的那样。 首先,我试着用从Fedora取得的OpenSSL 1.0.2h重buildsrc rpms并安装结果rpms(openssl-devel-1.0.2h-1.el7.centos.x86_64.rpm,openssl-1.0.2h-1.el7.centos .x86_64.rpm)replace系统的一个。 是的,我知道,这对于公共build筑来说是不正确的,但是我需要知道是否可以工作。 然后我重build了nghttp2-1.7.1-1.fc24.src.rpm并安装了libnghttp2-devel-1.7.1-1.el7.centos.x86_64.rpm和libnghttp2-1.7.1-1.el7.centos .x86_64.rpm。 最后,在删除了一些修补程序并且攻击了apr和apr-util后,我成功地将httpd-2.4.18-1.fc23.src.rpm生成到httpd-2.4.18-1.el7.centos.x86_64.rpm中。 纯HTTP / 1.1为我工作好,ALPN支持也存在,但HTTP / 2没有工作: $ curl -v –insecure –http2 –tlsv1.2 https://192.168.1.148 * Rebuilt URL to: https://192.168.1.148/ * Trying 192.168.1.148… * Connected to 192.168.1.148 (192.168.1.148) port 443 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * skipping SSL peer certificate verification * ALPN, server […]
我正在运行Apache服务器,并希望查明谁(IP地址)使用命令行在过去24小时内提出了很多请求。 还想知道谁目前有最开放的联系?