change root to uplevel folder

growield nginx-forum на forum.nginx.org
Пт Сен 1 10:54:49 UTC 2017


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