Thanks That what I needed location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_pass http://myapp1; } Posted at Nginx Forum: https://forum.nginx.org/read.php?2,279736,279745#msg-279745