SSL/Non-SSL config file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SSL/Non-SSL config file



Hi all.
PLaying with having SSL and Non-SSL hsts in the same config file for one
server. I downloaded the example from linuxrox.com but I'm having a few
problems, so I'm looking for some pointers.

*Relevant SSL Stuff:*

SSLDisable
# don't use this and doesn't seem to complain
#SSLCACertificatePath /usr/local/ssl/certs
#SSLCACertificateFile /usr/local/ssl/certs/www.manawatu.gen.nz.cert
SSLCertificateFile /usr/local/ssl/certs/www.manawatu.gen.nz.crt     
SSLCertificateKeyFile /usr/local/ssl/private/www.manawatu.gen.nz.key
SSLVerifyClient 0
SSLVerifyDepth 10
SSLFakeBasicAuth
SSLLogFile /tmp/ssl.log

Also:
Port 80
Listen 80
Listen 443

Also commented out BindAddress and ServerName

Here's the Virtual Host section

<VirtualHost localhost>
ServerAdmin webmaster@manawatu.gen.nz
ServerName www-test.manawatu.net.nz
DocumentRoot /var/spool/www
</VirtualHost>

## SSLEnabled host
<VirtualHost localhost:443>
SSLEnable
</VirtualHost>

<VirtualHost www-test2.manawatu.net.nz>
ServerAdmin webmaster@manawatu.gen.nz
ServerName www-test2.manawatu.net.nz
DocumentRoot /var/spool/www/test2
</VirtualHost>                     

Works fine as soon as I enable the SSL enabled host.
I get the erorr :
SSL disabled for server www2.manawatu.gen.nz:80
SSL disabled for server www-test2.manawatu.net.nz:80
No SSL Certificate set for server www-test.manawatu.net.nz:443 

Cheers,
Graeme




--
KC Multimedia

http://www.kc.co.nz/
ICQ: #127513
Guess the mystery song lyric! "Who knows what's going to happen? Lottery or
car crash or you'll join a cult."