Welcome! Log In Create A New Profile

Advanced

Passing $upstream_response_time in a header

Jonathan Simowitz via nginx
March 07, 2017 04:40PM
Hello,

I have an nginx server that runs as reverse proxy and I would like to pass
the $upstream_response_time value in a header. I find that when I do the
value is actually a linux timestamp with millisecond resolution instead of
a value of seconds with millisecond resolution. Apparently this is
automatically converted when written to the logs. Is there a way to trigger
the conversion for passing in a header?

Thank you,
~Jonathan

--
Jonathan Simowitz | Jigsaw | Software Engineer | simowitz@google.com |
631-223-8608
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Passing $upstream_response_time in a header

Jonathan Simowitz via nginx March 07, 2017 04:40PM

Re: Passing $upstream_response_time in a header

Francis Daly March 07, 2017 05:46PM

Re: Passing $upstream_response_time in a header

Maxim Dounin March 09, 2017 09:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 99
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready