You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jeff Trawick <tr...@gmail.com> on 2009/06/17 15:21:24 UTC
[users@httpd] Re: Backend host/port in the log
arungupta wrote:
>
> Configured mod_proxy_balancer for front-ending a bunch of GlassFish
> instances. How do I print the backend host/port in the log ?
>
In general, Apache environment variables (distinct from OS environment
variables) are logged via %{envvar-name}e. The special environment
variables created by the balancer are documented at
http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html#environment.
BALANCER_WORKER_NAME seems to be the one you want:
BALANCER_WORKER_NAME
This is assigned the name of the worker used for the current request.
The value is something like http://hostA:1234.
--
View this message in context: http://www.nabble.com/Backend-host-port-in-the-log-tp24003433p24073556.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] Re: Backend host/port in the log
Posted by arungupta <ar...@gmail.com>.
> In general, Apache environment variables (distinct from OS environment
> variables) are logged via %{envvar-name}e. The special environment
> variables created by the balancer are documented at
>
Just what I was looking for, thanks!
The complete blog entry is now available at:
http://blogs.sun.com/arungupta/entry/totd_84_using_apache_mod
--
View this message in context: http://www.nabble.com/Backend-host-port-in-the-log-tp24003433p24080830.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org