Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

setting up client ip and hostname in nginx? (no replies)

$
0
0
i am working on AWS Elastic Beanstalk Instance, which runs Java applicaiton servered through Nginx ( no load balancer in front, just a standalone instance )
I need to set cookie to catch client ip and client hostname. Is this possible to do it in nginx and if yes then how?
Below if my nginx configuration file:

location / {
proxy_pass http://127.0.0.1:5000;
proxy_http_version 1.1;

proxy_set_header Connection $connection_upgrade;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>