apache redirect to https for basic auth
Posted
by shreddd
on Server Fault
See other posts from Server Fault
or by shreddd
Published on 2010-03-13T05:02:51Z
Indexed on
2010/03/13
5:05 UTC
Read the original article
Hit count: 303
I have a tricky variation on an old problem.
I have an apache based site that should generally be accessed via http/port 80. However for certain areas protected areas that require authentication (designated by .htaccess), I want to be able to redirect the user the https/port 443.
The key here is that I want this to always happen - i.e. I don't want to have to rewrite each htaccess file with a redirect. I only want to enforce this for basic authentication and the protected areas are scattered all over the site. Is it possible to somehow redirect all basic authentication requests to the SSL host?
© Server Fault or respective owner