change root to uplevel folder
Alex Domoradov
alex.hha на gmail.com
Пт Сен 1 14:03:33 UTC 2017
You can use location and there override root
location =/test.php {
root /www;
...
}
On Fri, Sep 1, 2017 at 1:54 PM, growield <nginx-forum на forum.nginx.org>
wrote:
> Hello. I have site that have root /www/site
> but i must to get some file from /www. How can i change root only for one
> this file?
>
> For example
> some.domain.com/index.php?key=ss
> if $key is number rewrite to
> some.domain.com/test.php?key=12
>
> But test.php locates in /www not in /www/site
>
> Posted at Nginx Forum: https://forum.nginx.org/read.
> php?21,276213,276213#msg-276213
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru на nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-ru
----------- следущая часть -----------
Вложение в формате HTML было извлечено…
URL: <http://mailman.nginx.org/pipermail/nginx-ru/attachments/20170901/a6c1f45e/attachment.html>
Подробная информация о списке рассылки nginx-ru