httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Efjestad, Dag" <Dag.Efjes...@solvea.no>
Subject [users@httpd] REMOTE_USER and PROXY request
Date Thu, 28 May 2009 08:52:00 GMT
Hi.

I can't get access to the REMOTE_USER value when I do a proxy request. The value is empty.
RewriteRule ^/kongsberg(.*) http://aeoas02/kongsberg/%{LA-U:REMOTE_USER}$1 [P,L]

For rewrite  against directory URL's I get the value.
RewriteRule ^/kongsberg(.*) /kongsberg/%{LA-U:REMOTE_USER}$1 [L]

and for redirect it works:
RewriteRule ^/kongsberg(.*) http://aeoas02/kongsberg/%{LA-U:REMOTE_USER}$1 [R,L]


I also tried this syntaks with same result - no value in REMOTE_USER env. var.:
   RewriteCond %{LA-U:REMOTE_USER} (.+) 
   RewriteRule .  - [E=RU:%1]
   
   ProxyRequests    Off
   ProxyPassInterpolateEnv On
   ProxyPass        /kongsberg/ http://aeoas02/kongsberg/${RU}/ interpolate
   ProxyPassReverse /kongsberg/ http://aeoas02/kongsberg/${RU}/ interpolate


I also noticed that I can see the username value in the access logfile but not in the rewrite
logfile. 

Suggestions anyone?


Kind regards, Dag 


Mime
View raw message