https上的Apache获取它的configuration?

所以最初我的主机(mediatemple DV)有两个默认的根目录:

1)httpdocs / 2)httpsdocs /

在conf目录中,我更改了vhosts.conf和httpd.include等,将其从httpdocs更改为自定义文件夹。

现在我安装了一个新的SSL证书, https ://example.com进入位于httpsdocs的默认页面。

我只是想知道为Apache的configuration存储的SSL。

想法?

在“正常”安装中,通常包含configuration的/ etc / httpd /。 特别是/etc/httpd/conf/httpd.conf是“主”configuration文件,它指定了/etc/httpd/conf.d/中的所有.conf文件。

在我的configuration中,我有/etc/httpd/conf.d/ssl.conf,可以完成所有https特定的configuration,但pipe理员可以灵活地select。

通常,您将在/etc/httpd/conf.d/ssl.conf (或类似的其他发行版)中configuration给定主机(例如SSLCipherSuites )不一定特定的SSL设置,但要configuration给定主机的特定主机在自己的VirtualHost (与适当的端口),或多或less像这样:

 <IfModule mod_ssl.c> <VirtualHost *:443> # ... SSLEngine on SSLCertificateFile /etc/ssl/certs/host.pem SSLCertificateKeyFile /etc/ssl/private/host.key DocumentRoot /path/to/https/root </VirtualHost> </IfModule> <VirtualHost *:80> # ... DocumentRoot /path/to/plain-http/root </VirtualHost> 

你可以把这个部分放在/etc/httpd/conf.d/或者在ssl.conf的文件中。

这取决于分配。 在Debian / Ubuntu上,您可能会在/etc/apache2/mods-available/ssl.confconfiguration常规的SSLconfiguration,在/etc/apache2/mods-available/ssl.confconfiguration站点/虚拟主机的特定configuration。

我的解决scheme是创build一个vhost_ssl.conf文件,指向/var/www/vhosts/example.com/conf/的新文档根目录,然后运行/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=example.com for Plesk。