You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2009/12/21 22:57:23 UTC

DO NOT REPLY [Bug 43821] provide client AJP IP address

https://issues.apache.org/bugzilla/show_bug.cgi?id=43821

Rainer Jung <ra...@kippdata.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Rainer Jung <ra...@kippdata.de> 2009-12-21 13:57:21 UTC ---
You can add any so-called Apache environment variable to your request as
attributes when using Apache httpd. For this use the JkEnvVar directive. Such
request attributes can be retrieved on the Tomcat side via
request.getAttribute(attributeName). Note that their names will not be listed
in request.getAttributeNames()! 

Examples for available env vars are at

http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritecond

(look at the box with server variables). There you can find e.g. SERVER_ADDR
and SERVER_PORT.

General info about JkEnvVar is available at

http://tomcat.apache.org/connectors-doc/reference/apache.html

The page 

http://tomcat.apache.org/connectors-doc/generic_howto/proxy.html

might also be interesting.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org