httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: [users@httpd] Question about Apache SSL and Rewrites
Date Mon, 17 Dec 2007 03:26:43 GMT
On Dec 16, 2007 10:06 PM, Bryan Richardson <> wrote:

> This of course requires a login.  Now, the situation I'm coming across is
> I'm getting two requests for login; one at http://localhost and the other at
> https://localhost.  So, it looks to me like the authorization request is
> occurring before the rewrite, then once the redirect happens it's requiring
> another login because of the change in address (correct?).  Is there any way
> (short of using the config files rather than .htaccess files) to force the
> Rewrite to happen first?  Also, would use Redirects rather than Rewrites fix
> the problem?  I've already tried to use a Redirect (RedirectMatch,
> actually), but I couldn't get it to work.  If Redirects would fix the
> problem then any suggestions on how to use a Redirect in the .htaccess file
> for this situation would be much appreciated!!!

No, you can't fix this in .htaccess. The redirect itself may be
confidential, so the auth must happen before the redirect.

To fix the problem, you just put the auth stuff inside the ssl vhost
in httpd.conf.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message