httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Hughes '89" <bria...@Alum.Dartmouth.ORG>
Subject Re: [users@httpd] MODIFIYING THE REMOTE_USER VARIABLE : additionnal hints
Date Mon, 25 Apr 2005 13:35:58 GMT

OK... since it's my syntax, I'm happy to answer this particular 
question. In the RewriteCond statement, the last part is (.*), what 
that does is match on any value in the named HTTP header field 
(different than an environment variable set by Apache) and stores that 
value in a regular expression back-reference. That back-reference is 
used in the RewriteRule statement to set the value of the custom 
environment variable.

RewriteCond back-references are stored in %1-%9, while RewriteRule 
back-references are stored in $1-$9.

Now, that's pretty much the only part of your message I can really 
answer. As has been stated by others, setting the REMOTE_USER value in 
this manner should not work...


On Apr 25, 2005, at 03:41 AM, Patrick CLAVIER wrote:
> What means %1 in your syntax ? ( I have no syntax error but I don 't 
> know
> what happens ...
> To be more precise, I would like to put the value of the LDAP_USER_ALT
> variable into the REMOTE_USER variable
> Is there a solution to exchange the contents of variables ?
> -----Original Message-----
> From: Bud P. Bruegger []
> Sent: Friday, April 22, 2005 5:07 PM
> To:
> RewriteEngine On
> RewriteRule .* - [E=REMOTE_USER:%1]

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