changing root dir based on file request

Stefanita Rares Dumitrescu katmai at keptprivate.com
Wed Jan 27 15:28:49 MSK 2010


works! thanks!

Edho P Arief wrote:
> On Wed, Jan 27, 2010 at 6:58 PM, Stefanita Rares Dumitrescu
> <katmai at keptprivate.com> wrote:
>> 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 ?
>>
> 
> location = /folder/file.html { alias /var/newww/file.html; }
> 



More information about the nginx mailing list