Welcome! Log In Create A New Profile

Advanced

Re: changing root dir based on file request

Stefanita Rares Dumitrescu
January 27, 2010 07:04AM
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@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; }
>

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

changing root dir based on file request

Stefanita Rares Dumitrescu January 26, 2010 08:12PM

Re: changing root dir based on file request

任晓磊 January 26, 2010 08:28PM

Re: changing root dir based on file request

edogawaconan January 26, 2010 08:32PM

Re: changing root dir based on file request

Stefanita Rares Dumitrescu January 27, 2010 07:04AM

Re: changing root dir based on file request

edogawaconan January 27, 2010 07:12AM

Re: changing root dir based on file request

Stefanita Rares Dumitrescu January 27, 2010 07:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 207
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready