小妹在httpd设定的两组网域
但当我输入第二组网址https://www.b.com/时
会显示凭证只对 *.a.com 有效,新增为例外网站后
网站内容会显示https://www.a.com/的网站
看似都指向到了第一组VirtualHost
尝试把第一组跟第二组VirtualHost互调位子,结果会反过来变成第一组网址失效
解了好久始终没有解决....还请大大们帮帮小妹....
NameVirtualHost *:443
<VirtualHost *:443>
DocumentRoot "C:/web/a"
ServerName *.a.com
ServerAdmin *.a.com
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
SSLCertificateFile "C:/test/apache/conf/ssl.crt/certificate.crt"
SSLCertificateKeyFile "C:/test/apache/conf/ssl.crt/private.key"
SSLCACertificateFile "C:/test/apache/conf/ssl.crt/ca_bundle.crt"
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory "C:/web/a">
Options FollowSymLinks
AllowOverride All
SSLOptions +StdEnvVars
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)?$ https://%{SERVER_NAME}
</Directory>
</VirtualHost>
<VirtualHost *:443>
ServerName *.b.com
ServerAdmin *.b.com
DocumentRoot "C:/web/b"
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
SSLCertificateFile "C:/test/apache/conf/ssl.crt/certificate2.crt"
SSLCertificateKeyFile "C:/test/apache/conf/ssl.crt/private2.key"
SSLCACertificateFile "C:/test/apache/conf/ssl.crt/ca_bundle2.crt"
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory "C:/web/b">
Options FollowSymLinks
AllowOverride All
SSLOptions +StdEnvVars
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)?$ https://%{SERVER_NAME}
</Directory>
</VirtualHost>