nginx problem with allow when forwarding through 2 proxy's

Maxim Dounin mdounin at
Thu Dec 18 15:42:36 MSK 2008


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
> Is that a bug or it should be that way?

Maxim Dounin

More information about the nginx mailing list