Oh... thank you very much, Francis - I don't undestand how could I overlook this, please don't hit me hard :) Though it is introduced only in 1.7.1, but $upstream_http_* is indeed there for older versions - perhaps, I am too tired so I missed it... Posted at Nginx Forum: http://forum.nginx.org/read.php?2,250345,250349#msg-250349