apache端口已禁用但仍在工作

时间:2015-12-10 20:32:33

标签: apache ssl

所以我继承了一个linux服务器,并且不清楚它的apache配置。

在httpd.conf文件中它有这个..

Listen 80
#Listen 443

基于http://httpd.apache.org/docs/2.2/bind.html

"Note that if the <VirtualHost> is set for an address and port that
the server is not listening to, it cannot be accessed"

然而,此服务器使用SSL并成功接收请求。

这是一个vhost指令..

<VirtualHost *:80>
    ServerName www.somesite.com
    DocumentRoot /var/www/html/somesite
</VirtualHost>

<VirtualHost 10.0.0.5:443>
        DocumentRoot /var/www/html/somesite
        ServerName www.somesite.com
        SSLEngine on
        SSLCertificateFile /sslcerts/mycert.crt
        SSLCertificateKeyFile /sslcerts/mycert.key
        SSLCertificateChainFile /sslcerts/mycert.gd_bundle.crt
</VirtualHost>

服务器已成功接收www.somesite.com的https请求

我还没有看到其他一些配置吗? (我也不确定使用内部IP 10.0.0.5是否正确)

1 个答案:

答案 0 :(得分:0)

感谢@arkascha一个简单的grep显示有一个额外的配置文件,其中启用了端口443

相关问题