4 messages in ru.sysoev.nginxRe: nginx problem with allow when for...
FromSent OnAttachments
Tomasz PajorDec 18, 2008 3:55 am 
Maxim DouninDec 18, 2008 4:42 am 
Tomasz PajorDec 19, 2008 2:39 am 
Igor SysoevDec 19, 2008 6:00 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: nginx problem with allow when forwarding through 2 proxy'sActions...
From:Maxim Dounin (mdou@mdounin.ru)
Date:Dec 18, 2008 4:42:13 am
List:ru.sysoev.nginx

Hello!

On Thu, Dec 18, 2008 at 12:55:58PM +0100, Tomasz Pajor wrote:

Schema:

nginx1 -> nginx2 -> apache

On nginx2 i've got stub status module, and I want to allow only one ip to view the data. But when I add the directive, it won't work, because nginx2 sees that connection came from nginx1 which is on the same machine as nginx2 so client ip would be 127.0.0.1.

Is that a bug or it should be that way?

http://wiki.codemongers.com/NginxHttpRealIpModule