httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] URL Rewriting on a uer by user basis
Date Sun, 22 Aug 2004 02:56:19 GMT
On Sat, 21 Aug 2004 18:49:56 -0700, saqib.n.ali@seagate.com
<saqib.n.ali@seagate.com> wrote:
> > Look at mod_rewrite in the manual, and particularly the directive
> RewriteRule
> >
> > You can use %{REMOTE_USER} in the output pattern to include the actually
> 
> > authenticated user name, or you can instead provide a mapping from
> username
> > to some other string (RewriteMap directive)
> >
> 
> I dont think this will work. The URL rewrite happens before the
> authentication.

Actually, that depends on what context the RewriteRule's are in.  It
should work fine if they are in <Directory> sections or .htaccess
files.

And if it doesn't work, you can use %{LA-U:REMOTE_USER}, which will do
a sub-request to get the REMOTE_USER.

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