Welcome! Log In Create A New Profile

Advanced

Re: Rewrite or proxy_pass to internal ip ?

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

Hi there,

> > proxy_pass http://192.168.1.1:80/;

> one step forward but now I receive error 502 bad gateway. Server
> mydomain.com have 2 Ethernet. First one with realip that I connect, second
> one with virtual 192.168.1.2 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:\ 10.1.2.3 http://192.168.1.1:80/

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

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Rewrite or proxy_pass to internal ip ?

hristoc October 29, 2012 04:03AM

Re: Rewrite or proxy_pass to internal ip ?

Francis Daly October 29, 2012 05:52AM

Re: Rewrite or proxy_pass to internal ip ?

hristoc October 29, 2012 06:43AM

Re: Rewrite or proxy_pass to internal ip ?

Francis Daly October 29, 2012 05:06PM

Re: Rewrite or proxy_pass to internal ip ?

hristoc October 30, 2012 04:51AM

Re: Rewrite or proxy_pass to internal ip ?

Francis Daly October 30, 2012 03:50PM

Re: Rewrite or proxy_pass to internal ip ?

hristoc October 31, 2012 05:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 267
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready