Restrict Apache to only allow access using SSL for some directories
Posted
by
DrStalker
on Server Fault
See other posts from Server Fault
or by DrStalker
Published on 2008-09-19T01:19:55Z
Indexed on
2012/09/18
21:41 UTC
Read the original article
Hit count: 191
I have an Apache 2.2 server with an SSL certificate hosting several services that should be only access using SSL.
ie: https://myserver.com/topsecret/ should be allowed while http://myserver.com/topsecret/ should be either denied or, ideally, redirected to https.
http://myserver.com/public should not have this restriction, and should work using either http or https.
The decision to allow/deny http is made at the top level directory, and affects all content underneath it.
Is there a directive that can be placed in the Apache config to retrict access in this manner?
© Server Fault or respective owner