On 4/26/06, Shabbir bharmal <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to