changing root dir based on file request

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


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

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

-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



More information about the nginx mailing list