<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">You can use location and there override root</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">location =/test.php {</div><div class="gmail_default" style="font-family:verdana,sans-serif">   root /www;</div><div class="gmail_default" style="font-family:verdana,sans-serif">   ...</div><div class="gmail_default" style="font-family:verdana,sans-serif">}<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 1, 2017 at 1:54 PM, growield <span dir="ltr"><<a href="mailto:nginx-forum@forum.nginx.org" target="_blank">nginx-forum@forum.nginx.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello. I have  site that have root /www/site<br>
but i must to get some file from /www. How can i change root only for one<br>
this file?<br>
<br>
For example<br>
<a href="http://some.domain.com/index.php?key=ss" rel="noreferrer" target="_blank">some.domain.com/index.php?key=<wbr>ss</a><br>
if $key is number rewrite to<br>
<a href="http://some.domain.com/test.php?key=12" rel="noreferrer" target="_blank">some.domain.com/test.php?key=<wbr>12</a><br>
<br>
But  test.php locates in /www not in /www/site<br>
<br>
Posted at Nginx Forum: <a href="https://forum.nginx.org/read.php?21,276213,276213#msg-276213" rel="noreferrer" target="_blank">https://forum.nginx.org/read.<wbr>php?21,276213,276213#msg-<wbr>276213</a><br>
<br>
______________________________<wbr>_________________<br>
nginx-ru mailing list<br>
<a href="mailto:nginx-ru@nginx.org">nginx-ru@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-ru" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx-ru</a></blockquote></div><br></div>