httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] Mod_header REMOTE_USER variable null via reverse proxy server - HELP!
Date Thu, 27 Apr 2006 13:34:42 GMT
On 4/26/06, Shabbir bharmal <bharmals@gmail.com> wrote:
> I have Apache 2.2 setup using mod_proxy, mod_headers and mod_auth
> successfully. I am using Apache as my web server and Apache Tomcat as
> my web container where my application    is deployed.
>
> Mod_auth challenges a browser session to enter a username and password
> when accessing a page on my tomcat container. The username needs to be
> set as a 'UserId' variable to be sent over to a reverse proxy
> connection to a specific host where the application resides.
>
> I have tried using the REMOTE_USER variable in a number of ways. To
> show a couple of them:
>
> 1. RequestHeader set UserId %{REMOTE_USER}e
> 2. RequestHeader set UserId %{LA-U:REMOTE_USER}e

Those variables are for mod_rewrite/mod_cgi and are not available to
mod_headers.  You may be able to use something like:

RewriteRule .* - [E=RU:%{LA-U:REMOTE_USER}]
RequestHeader set UserId %{RU}

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