tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: mod_jk how to add JK_WORKER_NAME to http-header
Date Tue, 26 Feb 2013 21:38:24 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Jochen,

On 2/26/13 10:41 AM, Jochen WiƟmann wrote:
> I tried to get something like this working:
> 
> httpd.conf: ... Header add TC-Server "%{JK_WORKER_NAME}e"

This looks like it should work from my brief review of the documentation.

> < TC-Server: (null)
> 
> Why do i get "TC-Server: (null)" ? Using the Variable
> JK_WORKER_NAME to log the worker's name via mod_log_config works
> fine.
> 
> Am i missing something? Is it even possible to access the
> env-variable JK_WORKER_NAME with module mod_header?

The httpd documentation says so.

Can you give us more of your httpd.conf? Perhaps the "Header"
directive isn't in a place where the environment variable has been
set, goes out of scope, etc.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEAREIAAYFAlEtK1AACgkQ9CaO5/Lv0PAdmwCgvDx2p5ZNdLAU6E7xXIg4uuu6
tCcAoLWtF78/eXNDXvmV2FeR6TIOq0qj
=f/sj
-----END PGP SIGNATURE-----

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


Mime
View raw message