Question

nginx proxy protocol how to setup this with elb in front of it.

need your help on nginx proxy protocol as i am not getting visitor client ip. instead getting elb’s ip In nginx logs ec2 server(nginx) ->aws elb proxy_protocol is enabled on elb. when setting same parameter in nginx.conf file it stop listening on 80 and 443 and website not accessible at all. kindly help.

i am not able to get visitor client ip on my website which runs on ec2 instance nginx web server.

when i configure proxy_protocol it dont listen on 80 and 443 and when i remove it it starts listening again and always gives private ip’s generated from aws elb.

kindly help.

Thanks, Rakesh

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

@aroraisonline

We’d need to see your configuration before we can see where the issue is. If you’d kindly post the server block(s) in question, we can take a closer look at them and see where the issue is.