Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get the real client IP to my web-servers. #17

Open
ashish235 opened this issue Apr 10, 2015 · 1 comment
Open

Can't get the real client IP to my web-servers. #17

ashish235 opened this issue Apr 10, 2015 · 1 comment

Comments

@ashish235
Copy link

I 've the below config.

server {
listen 8080;
location / {
proxy_pass http://backend;
proxy_redirect off;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
set_real_ip_from 172.16.131.253;
real_ip_header X-Forwarded-For;
real_ip_recursive on;

But it's not working and I 'm still getting the IP of my host reaching the webservers. I think the http_realip_module module is not built in.

Can you compile the nginx from source with some common modules like http_realip_module, http_geoip_module, http_ssl_module etc? It would be of great help.

@ashish235
Copy link
Author

Can anyone help here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant