Solved

NGINX and IP Addresses

Posted on 2012-03-23
1
359 Views
Last Modified: 2012-03-26
I am currently using NGINX on Ubuntu 10.10 to load balance one of my websites.  I collect  statistical information from each visitor.  My problem is that the vistitors IP address is not being passed through the load balancer.  The load balancer is instead, passing the public IP address of the load balancer.

Is there a way to fix this?
0
Comment
Question by:deklinm
1 Comment
 
LVL 39

Accepted Solution

by:
noci earned 500 total points
Comment Utility
What happens is that your load balancer connects to your webserver.
Now some proxy servers can add a X-Fordarded-for header to the HTTP header.
This should then be used in your web server to add to the logging.
See also:
 http://wiki.nginx.org/HttpProxyModule
 http://wiki.nginx.org/HttpRealIpModule
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now