httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trever M. Shick" <tsh...@objectwave.com>
Subject Re: Rewrite Rule
Date Wed, 28 Nov 2001 21:10:01 GMT
 I saw this after I sent the message, however, the %{la-u:remote_user} is in
the RewriteCond directive...

How can I have it evaluated in the RewriteCond to non blank,
then use the value in the rewrite rule...



----- Original Message -----
From: <joshua@slive.ca>
To: <users@httpd.apache.org>
Sent: Wednesday, November 28, 2001 1:59 PM
Subject: Re: Rewrite Rule


>
> On Wed, 28 Nov 2001, Trever M. Shick wrote:
>
> > I'd like to do the following:
> >
> > RewriteRule /private/* /home/%{REMOTE_USER}
> >
> > Is this possible.
> > I've already set up authentication, but REMOTE_USER is empty every time
> > this is evaluated.
>
> RewriteRules get applied before authentication is performed.  Luckily,
> Ralf thought of this problem and invented the convoluted syntax
> %{LA-U:REMOTE_USER} to do an internal sub-request and grab the REMOTE_USER
> value.  See:
> http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteCond
>
> 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
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message