apache SSL help

alex at crackpot.org alex at crackpot.org
Tue Oct 17 08:56:10 MST 2006


Quoting alex at crackpot.org:

> You need 2 virtual hosts.  One for normal http, and the other for
> https.  I just wrote these samples off the top of my head, so you
> might need to check the syntax in the docs, but this setup will work.
>
> NameVirtualHost 0.0.0.0
>
> <VirtualHost 0.0.0.0:80>
>    ServerName cms.tobyhouse.com
>    Redirect / https://cms.tobyhouse.com/
> </VirtualHost>
>
> <VirtualHost 0.0.0.0:443>
>    ServerName cms.tobyhouse.com
>    SSLRequireSSL
>    # other directives
> </VirtualHost>

Sorry, Craig, I should have read your post a little closer.   
SSLRequireSSL need to be in a <Directory> like you have it, not in the  
<VirtualHost>.  How to relax the SSLRequireSSL in a subdirectory?  I  
don't know that one, but I'll keep looking.


More information about the PLUG-discuss mailing list