Tools
2020.12.25
Reveal real IP for Nginx behind a reverse proxy
I'm currently using LogDNA for tracking Nginx logs. Meanwhile, my Nginx server is behind Cloudflare proxy, I can only see IPs of Cloudflare by default in LogDNA. Let's see how to reveal user's real IP address in the logs behind such reverse proxy server by using ngx_http_realip_module.