Welcome! Log In Create A New Profile

Advanced

Need to remove folder name from URL

February 11, 2015 09:22AM
Hi

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


Here is the code

location ^~/<folder name> {
proxy_pass http://www.example.org/<folder name>;
}

So let's say the site is example1.org.

Going to www.example1.com/<folder name>/history correctly shows that page that would be visibile at

www.example.org/<folder name>/history but I need to remove the folder name making it

www.example1.org/history.

How can I do this?

Thanks
Subject Author Posted

Need to remove folder name from URL

strtwtsn February 11, 2015 09:22AM

Re: Need to remove folder name from URL

itpp2012 February 11, 2015 09:37AM

Re: Need to remove folder name from URL

strtwtsn February 11, 2015 10:03AM

Re: Need to remove folder name from URL

itpp2012 February 11, 2015 10:06AM

Re: Need to remove folder name from URL

strtwtsn February 11, 2015 11:35AM

Re: Need to remove folder name from URL

Francis Daly February 11, 2015 03:10PM

Re: Need to remove folder name from URL

strtwtsn February 12, 2015 03:06AM

Re: Need to remove folder name from URL

Francis Daly February 12, 2015 05:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 144
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