we are runing an apache reverse proxy in front of several tomcats. sometimes we like to know to which server the request was forwarded. as we use mod_proxy_balancer.

i tried

 \"%{X-Forwarded-Server}i\"

but this doesn't work. it shows the name of my loadbalancer (apache)

How can i log which worker was selected?

link|improve this question

feedback

1 Answer

up vote 3 down vote accepted

Try %{BALANCER_WORKER_ROUTE}e.

There's a few other variables available for checking on the request routing, too; see here.

link|improve this answer
great. i searched the documentation for this but was somehow not successful. thx. – Janning Oct 29 '11 at 8:42
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.