changing root dir based on file request

Edho P Arief edhoprima at
Wed Jan 27 04:29:15 MSK 2010

On Wed, Jan 27, 2010 at 8:07 AM, Stefanita Rares Dumitrescu
<katmai at> wrote:
> Hi.
> How can i change the root directory of a site but only when a specified file
> is requested.
> For ex my website has root dir /var/www
> I want for the root dir to be /var/newww

location = /file.html { root /var/newww; }

O< ascii ribbon campaign - stop html mail -

More information about the nginx mailing list