Welcome! Log In Create A New Profile

Advanced

Re: Rewrite or proxy_pass to internal ip ?

Francis Daly
October 29, 2012 05:52AM
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

_______________________________________________
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: 316
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