RE: Apache and SSL
Hi Johnno!
Maybe sth like this would help you...
Listen 80
Listen 443
NameVirtualHost 192.168.1.1:80
NameVirtualHost 192.168.1.1:443
<VirtualHost 192.168.1.1:80>
ServerName foo.bar
ServerAlias foo2.bar
ServerAdmin hostmaster@foo.bar
DocumentRoot /var/www/foo/bar
</VirtualHost>
<VirtualHost 192.168.1.1:443>
ServerName ssl.foo.bar
ServerAlias ssl2.foo.bar
ServerAdmin hostmaster@foo.bar
DocumentRoot /var/www/foo/bar/ssl
<Directory /var/www/foo/bar/ssl>
# ok this here is for authentication - maybe not needed in your case...
SSLRequireSSL
AuthType Basic
AuthName "Entering forbiden land - Let's see your passport now."
require user johnno
Auth_MySQL_Encryption_Types MySQL
Auth_MySQL_Empty_Passwords off
</Directory>
<IfModule mod_ssl.c>
SSLEngine on
SSLCertificateFile /etc/apache/ssl.crt/foo.crt
SSLCertificateKeyFile /etc/apache/ssl.key/foo.key
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
</IfModule>
</VirtualHost>
Reply to: