REMOTE_USER and PROXY request

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux