apache SSL help
alex at crackpot.org
alex at crackpot.org
Tue Oct 17 13:08:44 MST 2006
Quoting Craig White <craigwhite at azapple.com>:
> a connection from outside always shifts...
>
> http://srv3.tobyhouse.com is redirected to https://cms.tobyhouse.com
>
> I would prefer to have the SSLRequireSSL directive and Redirect
> Permanent /drupal directives for a lot of reasons but for now, they are
> off.
Put this in your config for port 80 :
# any http request which is not for /drupal will be redirected to https.
<LocationMatch "^/(?!drupal)">
Redirect / https://cms.tobyhouse.com/
</LocationMatch>
And this in your config for port 443 :
# require SSL for all directories in the web root except /drupal
<DirectoryMatch "^/whatever/the/doc/root/is/(?!drupal)">
SSLRequireSSL
</DirectoryMatch>
More information about the PLUG-discuss
mailing list