You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Francesco Sordillo <f....@cineca.it> on 2012/05/10 11:47:57 UTC

[users@httpd] Re: [SOLVED][users@httpd] REMOTE_USER mod_proxy_ajp JBoss


Il 08/05/2012 15:38, Eric Covener ha scritto:
>> What that I need is something like "JkEnvVar" of mod_jk
>> http://tomcat.apache.org/connectors-doc/reference/apache.html
>> that forward REMOTE_USER as request property.
>
> "Environment variables whose names have the prefix AJP_ are forwarded
> to the origin server as AJP request attributes (with the AJP_ prefix
> removed from the name of the key)."
>
> Try copying it with setenvif.


Thanks Eric. Also JBoss.com support suggested me the same solution.
I added this rewrite rule

#####
RewriteCond %{LA-U:REMOTE_USER} (.*)
RewriteRule .* - [E=AJP_REMOTE_USER:%1]
#####

and it works!!!
Thanks a lot.
Regards.
Francesco.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org