Welcome! Log In Create A New Profile

Advanced

Re: IP backend reverse proxy problem

All files from this thread

File NameFile Size Posted byDate 
sig-ecolo.gif1.9 KBopen | downloadBertrand Caplet08/08/2012Read message
Francis Daly
August 08, 2012 07:20PM
On Wed, Aug 08, 2012 at 11:51:20PM +0200, Bertrand Caplet wrote:

Hi there,

> Hi, I've installed nginx as a reverse proxy with 2 backends web servers
> (one nginx, one apache). I want the backends servers to have the "real"
> IP of the client on their logs and on the webpage.

The backend servers will always see the tcp connection coming from the
nginx reverse proxy.

All nginx can do is send an extra http header which says what the ip
address of the client connecting to it was. The backend server can then
choose to do something special with that header, or not.

> I tried
> proxy_set_header like here :
> https://help.ubuntu.com/community/Nginx/ReverseProxy and apache with the
> rpaf module but it doesn't work...

Look at the traffic from nginx to the backend server. If you see

X-Real-IP:

and the client address, your nginx configuration is correct. If not,
it isn't.

If your nginx configuration is not correct, provide details. If it is
correct, you have a non-nginx problem to address.

Good luck with it,

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
SubjectAuthorPosted

IP backend reverse proxy problem Attachments

Bertrand CapletAugust 08, 2012 05:52PM

Re: IP backend reverse proxy problem

Francis DalyAugust 08, 2012 07:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 87
Record Number of Users: 5 on May 22, 2013
Record Number of Guests: 226 on June 13, 2013
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready