![Custom Access Log Nginx Custom Access Log Nginx](/uploads/1/2/4/1/124117887/128407411.png)
Advanced online training and certification courses in Linux, AWS, OpenStack and DevOps to learn new skills and get certified. M y nginx server is behind a reverse proxy load balancer. How can I show the correct client IP address in nginx log files when nginx is behind a load balancer? If you are using nginx behind reverse proxies, load balancer and HTTPS front-end such as HAProxy/Pound, you may find hard to log or get the real IP address.
![Settings Settings](/uploads/1/2/4/1/124117887/781305706.png)
I want to log custom headers from clients requests. I have added '$httpmyheader' to my logformat and it is logged nicely for POST requests. All GET request, on the other hand, a logged with empty value.The example of GET request: GET /pws HTTP/1.1upgrade: websocketconnection: Upgradesec-websocket-key: XXXXhost: XXXXsec-websocket-origin: XXXXsec-websocket-version: 13X-Plumbr-sessionId: XXXXX-Plumbr-accountId: XXXXX-Plumbr-build: SNAPSHOTMy nginx logformat contains '$httpxplumbraccountid' '$httpxplumbrbuild'Does logging headers in GET requests require some special configuration?