Need to remove folder name from URL

strtwtsn nginx-forum at
Wed Feb 11 14:22:23 UTC 2015


We're using proxy_pass to silently forward a website to a different URL.

Here is the code

location ^~/<folder name> {
proxy_pass<folder name>;

So let's say the site is

Going to<folder name>/history correctly shows that page
that would be visibile at<folder name>/history but I need to remove the folder name
making it

How can I do this?


Posted at Nginx Forum:,256577,256577#msg-256577

More information about the nginx mailing list