Need to remove folder name from URL

Francis Daly francis at
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,
> but show in the addressbar.
> eg
> 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<folder>/history/one, no?

"location ^~ /history/", 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?

Francis Daly        francis at

More information about the nginx mailing list