changing root dir based on file request
Stefanita Rares Dumitrescu
katmai at keptprivate.com
Wed Jan 27 14:58:32 MSK 2010
works for
www.example.com/file.html
but for
www.example.com/folder/file.html
doesn't even if i use
location = /folder/file.html { root /var/newww; }
any idea how can i fix this up ?
Edho P Arief wrote:
> 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; }
>
More information about the nginx
mailing list