Welcome! Log In Create A New Profile

Advanced

wrong values for $upstream_response_time in add_header

Posted by hexa 
wrong values for $upstream_response_time in add_header
April 30, 2012 02:35PM
Hi,

I'm using nginx-1.2.0 and I'm really happy with that. However I want to add a couple of Headers ($upstream_response_time in this case) to be passed to the Client for debugging purposes. So I've added `add_header X-AppServer-Response $upstream_response_time;` to my location block where I do all my proxy stuff. I've got an upstream block where I've put in my 3 backend servers. All Backends respond very fast during testing.

However there are unreasonable high values within this header (X-AppServer-Response: 74768.562 in this case). I'm using access_log to get some more values written to disk as well for central monitoring. Within this log all values seem to be ok (for this particular request it's 0.002 to be exact). I was able to reproduce this on different platforms using different browsers.

Any Idea what's going wrong here?

Regards,
Chris
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 266
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready