Welcome! Log In Create A New Profile

Advanced

Set real ip not working

May 09, 2018 02:19PM
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_pass http://myapp1;

}
}



}
Subject Author Posted

Set real ip not working

snir May 09, 2018 02:19PM

Re: Set real ip not working

Francis Daly May 09, 2018 04:38PM

Re: Set real ip not working

snir May 10, 2018 08:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 201
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready