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; }by snir - Nginx Mailing List - English
Hello I want to get the real ip of the client but I'm all ways getting the ip of the ngnix server. I trayed using set_real_ip: http { upstream myapp1 { server 177.17.777.13:8080; } server { listen 80; real_ip_recursive on; set_real_ip_from 177.17.777.13; real_ip_header X-Forwarded-For; location / { proxy_passby snir - Nginx Mailing List - English