httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] Redirection Based on Authentication
Date Wed, 26 May 2004 15:56:03 GMT

On Wed, 26 May 2004, Elam Daly wrote:
>But, this is what you suggested:
> RewriteRule ^/login/?(.*) /login/%{LA-U:REMOTE_USER}/$1
> I put that in my config file, and requested ' http://localhost:3280/login/ ' 
> but Mozilla gave me a redirect error and the log dump was huge.  I think it 
> was telling me that this is a loop, constantly redirecting '/login' requests. 
> Did you mean:
> RewriteRule ^/clients/?(.*) /login/%{LA-U:REMOTE_USER}/$1

Uh... yah.  That's better.  (Or else you'd need to put in exclusions for 
the case where the username is already there to avoid getting into the 

> Anyway, just to try what I had originally proposed, I correctly requested 
> 'http://localhost:3280/clients/ ' with the rewrite rule:
> RewriteRule ^/clients/?(.*) /login/%{LA-U:REMOTE_USER} [R]

> [localhost/sid#864c980][rid#870c788/initial] (5) lookahead: path=/clients/ 
> var=REMOTE_USER -> val=

What do your auth directives look like?  Is /clients/ itself protected by 
auth in addition to /login/?  If not, that is probably your problem. 
Protect them both so that the look-ahead on the request to /clients/ will 
see a password.


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