Hi,
I have managed to set up HTTPS on my server. I wish to host two different websites over https so I used this code for two virtual hosts:
<VirtualHost *:443>
DocumentRoot "E:/Program Files/Apache Software Foundation/Apache2.2/htdocs/wm/"
ServerName www.wm.freeform.ath.cx:443
ServerName wm.freeform.ath.cx:443
ServerAdmin samarudge@freeform.ath.cx
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile "E:/Program Files/Apache Software Foundation/Apache2.2/conf/ssl/pp.cert"
SSLCertificateKeyFile "E:/Program Files/Apache Software Foundation/Apache2.2/conf/ssl/pp.key"
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory "E:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
BrowserMatch ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog "E:/Program Files/Apache Software Foundation/Apache2.2/logs/ssl_request.log" \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>
<VirtualHost *:443>
DocumentRoot "E:/Program Files/Apache Software Foundation/Apache2.2/htdocs/phproxy/"
ServerName www.pp.freeform.ath.cx:443
ServerName pp.freeform.ath.cx:443
ServerAdmin samarudge@freeform.ath.cx
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile "E:/Program Files/Apache Software Foundation/Apache2.2/conf/ssl/pp.cert"
SSLCertificateKeyFile "E:/Program Files/Apache Software Foundation/Apache2.2/conf/ssl/pp.key"
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory "E:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
BrowserMatch ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog "E:/Program Files/Apache Software Foundation/Apache2.2/logs/ssl_request.log" \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>
That seems OK but when I restart Apache I get this error:
[warn] _default_ virtual host overlapping on port 443, the first has precidence
And both of the URLs go to the first Virtual Host
How do I fix this?
Regards,
Sam Rudge