I have a reverse proxy setup with nginx.
Client ------> Nginx ------------------------------------> Backend Server
<------ <-----------------------------------
(I want to see the requests here)
How can I log the http requests including headers sent from the backend server to nginx into a file?
Maybe one of the directives in nginx http proxy module can help me do this.
But I cannot find any helpful directives.