changing root dir based on file request

任晓磊 julyclyde at gmail.com
Wed Jan 27 04:23:46 MSK 2010


I think rewrite should work, since you have just ONE request that need
special process.

2010/1/27 Stefanita Rares Dumitrescu <katmai at keptprivate.com>:
> 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
>
>
> regards
> rares
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>



-- 
Ren Xiaolei



More information about the nginx mailing list