Rewrite or proxy_pass to internal ip ?

Francis Daly francis at
Mon Oct 29 21:04:42 UTC 2012

On Mon, Oct 29, 2012 at 07:30:00AM -0400, hristoc wrote:
> Francis Daly Wrote:

Hi there,

> >   proxy_pass;

> one step forward but now I receive error 502 bad gateway. Server
> have 2 Ethernet. First one with realip that I connect, second
> one with virtual connected to internal network. I don't want to
> add in my fw redirect rule, so I expect to do it over the web. When I access
> realip or domain name in that directory, I actually to see the web of my
> internal server located somewhere in local network.

I'm confused.

Which machine is creating these error messages?

If you start on the public nginx machine, and do

  curl -i -0 -H X-Real-IP:\

what response do you get? What response do you expect?

Francis Daly        francis at

More information about the nginx mailing list