Originally published at: https://www.cyberciti.biz/faq/nginx-restore-real-ip-address-when-behind-a-reverse-proxy/
My Nginx web server is behind a reverse proxy server. How do I restore the original and real IP address of my client/visitors when behind a reverse proxy server such as Cloudfront or Cloudflare? When our web server is behind a reverse proxy, we see the reverse proxy IP logged into log files. But we…