Welcome! Log In Create A New Profile

Advanced

Re: Rewrite or proxy_pass to internal ip ?

October 29, 2012 06:43AM
Francis Daly Wrote:
-------------------------------------------------------
> On Mon, Oct 29, 2012 at 05:40:39AM -0400, hristoc wrote:
>
> Hi there,
>
> > location /admin {
> > proxy_pass http://192.168.1.1:80;
> > proxy_set_header X-Real-IP $remote_addr;
> > }
> >
> > But I got Error from http://192.168.1.1 admin does not exists. What
> I to do
> > to redirect all requsts after /admin on web server to internal
> server with
> > admin ?
>
> http://nginx.org/r/proxy_pass
>
> See the part that starts "A request URI is passed to the server as
> follows:"
>
> The short version is:
>
> proxy_pass http://192.168.1.1:80/;
>
> f
> --
> Francis Daly francis@daoine.org
>


Thank you,
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.
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: 116
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready