Need to remove folder name from URL

Francis Daly francis at daoine.org
Wed Feb 11 20:09:17 UTC 2015


On Wed, Feb 11, 2015 at 11:35:03AM -0500, strtwtsn wrote:

Hi there,

> Clicking the links on the page take me to the correct page on example.com,
> but show example1.com in the addressbar.
> 
> eg
> 
> example1.com/<folder>/history  
> 
> I need to hide the <folder> part of it.

It sounds like you want a request for /history/one to be proxy_pass:ed
to http://example.com/<folder>/history/one, no?

"location ^~ /history/", proxy_pass (http://nginx.org/r/proxy_pass),
and then you are responsible for "fixing" any links on the page if they
refer to "<folder>" at all.

Which part doesn't work?

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list