reverse proxy root folder only

starmonche nginx-forum at nginx.us
Mon Jan 9 17:01:37 UTC 2012


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.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,220895,220969#msg-220969



More information about the nginx mailing list