atom feed6 messages in ru.sysoev.nginxRe: changing root dir based on file r...
FromSent OnAttachments
Stefanita Rares DumitrescuJan 26, 2010 5:07 pm 
任晓磊Jan 26, 2010 5:23 pm 
Edho P AriefJan 26, 2010 5:28 pm 
Stefanita Rares DumitrescuJan 27, 2010 3:57 am 
Edho P AriefJan 27, 2010 4:07 am 
Stefanita Rares DumitrescuJan 27, 2010 4:28 am 
Subject:Re: changing root dir based on file request
From:Edho P Arief (edho@gmail.com)
Date:Jan 26, 2010 5:28:39 pm
List:ru.sysoev.nginx

On Wed, Jan 27, 2010 at 8:07 AM, Stefanita Rares Dumitrescu <kat@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; }