我需要有关 Apache2 配置的帮助。
我在此服务器上托管了一些不是 SSL 的站点和一个是 SSL 的站点。问题是,输入服务器上托管的任何站点的 https:// 都会导致 SSL 托管站点出现证书错误。
如何阻止该网站显示?
<IfModule mod_ssl.c>
NameVirtualHost *:443
<VirtualHost *:443>
ServerAdmin miked@********.ca
ServerName www.********.com
CheckSpelling on
CheckCaseOnly on
DocumentRoot /var/vhosts/********.com
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/vhosts/*******.com>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogLevel error
CustomLog ${APACHE_LOG_DIR}/*******-ssl_access.log combined env=!chat
ErrorLog ${APACHE_LOG_DIR}/*******-ssl-error.log
# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on
#SSLCertificateFile /etc/apache2/ssl/apache.crt
SSLCertificateFile /etc/apache2/ssl/lubrigard.crt
SSLCertificateKeyFile /etc/apache2/ssl/apache.key
SSLCertificateChainFile /etc/apache2/ssl/digicertCA.crt
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
# MSIE 7 and newer should be able to use keepalive
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
</VirtualHost>
</IfModule>