Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

Try %{BALANCER_WORKER_ROUTE}e.

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

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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