You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michael Schwalbe <mi...@aperto.de> on 2003/04/25 11:55:08 UTC

Apache2 - mod_jk2: Passing env variables from Apache to Tomcat 4.1

Hi!
I have an Apache 2 running on SuSe Linux being connected to Tomcat 4.1 via
mod_jk2. How can i tell mod_jk2 to pass Environent variables from Apache to
Tomcat? The mod_jk2 part in httpd.conf looks like this:

# Load mod_jk module
LoadModule jk2_module /usr/local/apache2/modules/mod_jk2-2.0.43.so

# Declare the module for <IfModule directive>
#AddModule mod_jk2.c
# Where to find workers.properties
#JkWorkersFile /usr/local/apache2/conf/workers2.properties
# Where to put jk logs
#JkLogFile /usr/local/apache2/logs/mod_jk.log
# Set the jk log level [debug/error/info]
#JkLogLevel debug
# Select the log format
#JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
# JkOptions indicate to send SSL KEY SIZE,
#JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format
#JkRequestLogFormat "%w %V %T"
# Send servlet for context /examples to worker named worker1
#JkMount /examples/servlet/* worker1
# Send JSPs for context /examples to worker named worker1
#JkMount /examples/*.jsp worker1
#JkEnvVar REDIRECT_URL ""

If i uncomment anything below the line "Load Module...", the Apache says:

"Invalid command 'JkEnvVar', perhaps mis-spelled or defined by a module not
included in the server configuration"

but the module is working, so the commented lines seem to be from an older
version of mod_jk. But how can i then tell mod_jk2 to pass environment
variables?

Any ideas?

Thanks in advance

Michi
____________________________________________
Aperto AG - In der Pianofabrik
Michael Schwalbe, Technology
Email mailto:michael.schwalbe@aperto.de
Chausseestraße 5, D-10115 Berlin-Mitte

Phone +49 (0)30 28 39 21-311
Fax +49 (0)30 28 39 21-29
Web http://www.aperto.de



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