httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
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 
loop.)

>
> 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.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message