In order to pass an environment variable via mod_jk to tomcat you need to set the "JkEnvVar" in your jk.conf file. For example,
JkEnvVar REMOTE_USER %{REMOTE_USER} -James From: Kim Goldov [mailto:kgol...@gmail.com] Sent: Thursday, May 26, 2011 8:24 PM To: modperl@perl.apache.org Subject: set environment variables in tomcat I'm connecting to a tomcat server from our web server using mod_jk. I'm setting environment variables with each request in the PerlAuthenHandler and PerlHeaderParserHandler. I'm able to read the variables in PHP, perl fcgi, and wsgi, however they are not being passed to tomcat. Is there a way to pass these environment variables through? -- Kim IMPORTANT NOTICE REGARDING THIS ELECTRONIC MESSAGE: This message is intended for the use of the person to whom it is addressed and may contain information that is privileged, confidential, and protected from disclosure under applicable law. If you are not the intended recipient, your use of this message for any purpose is strictly prohibited. If you have received this communication in error, please delete the message and notify the sender so that we may correct our records.