我已经为SSL配置了Apache,例如
<VirtualHost *:443>
ServerAdmin root@mysite.com
ServerName mysite.com
ServerAlias mysite.com
ServerAlias www.mysite.com
DefaultType text/html
ErrorLog "logs/mysite.log"
CustomLog "logs/mysiteCustom.log" common
SSLEngine On
#SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
#SSLCACertificateFile "D:\xampp\apache\conf\ssl\ca_bundle.crt"
SSLCertificateFile "D:\xampp\apache\conf\ssl.crt\server.crt"
SSLCertificateKeyFile "D:\xampp\apache\conf\ssl.key\server.key"
ProxyRequests off
ProxyPreserveHost On
ProxyPass / ajp://127.0.0.1:8009/
#smax=0 ttl=60 retry=5
#ProxyPass / http://localhost:8080/
#ProxyPassReverse / ajp://127.0.0.1:8009/
</VirtualHost>
它在localhost上正常工作,但是当我尝试从localhost外部访问mysite.com时,浏览器显示在长时间的等待后找不到站点。
另外c:\ xampp \ apache \ logs \ error.txt说-
"RSA certificate configured for www.mysite.com:443 does NOT include an ID which matches the server name".