Welcome! Log In Create A New Profile

Advanced

Re: reverse proxy root folder only

January 09, 2012 12:01PM
That was exactly what I was looking for, thank you.

I have these locations defined in my server section:

location ~ ^/[^/]*$ { proxy_pass http://myinternalsite.com; }
location /subfolder { proxy_pass http://myinternalsite.com; }
location / { return 444; }

So http://externalsite.com and http://externalsite.com/subfolder both work but everything else fails.
Subject Author Posted

reverse proxy root folder only

starmonche January 06, 2012 07:17PM

Re: reverse proxy root folder only

Francis Daly January 07, 2012 05:04AM

Re: reverse proxy root folder only

starmonche January 09, 2012 12:01PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 62
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready