Welcome! Log In Create A New Profile

Advanced

Log the headers sent by nginx to upstream server

August 31, 2016 04:17AM
My client sends a request to nginx with a http header set.
This header is overwritten by nginx before passing along the reqest to the downstream server.
I want to log the header after modification by nginx.
I understand that we can log the header sent by client using "$http_<header_name>".
Is there some embedded variable or some other way I can use which will log the header sent to the downstream server?
Subject Author Posted

Log the headers sent by nginx to upstream server

Sushma August 31, 2016 04:17AM

RE: Log the headers sent by nginx to upstream server

Maxim Ozerov August 31, 2016 06:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 53
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