<div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Hello,</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Thanks for that input, I changed my config like you said and also set the fastcgi_param SCRIPT_FILENAME to /path/to/the/index.php;</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">But I feel like this should be done by the rewrite directive instead of this way. Now that this is working, can someone please tell me if I can use the rewrite tag so that I can avoid hardcoding the path everywhere?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 6, 2018 at 1:31 PM, Reinis Rozitis <span dir="ltr"><<a href="mailto:r@roze.lv" target="_blank">r@roze.lv</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> I tried rewrite tag, and tried giving alias inside the location block, both didn't work. The thing is if I remove the /v11/ from the location tag and the URL, its working without any issues What is the right way to do this?<br>
<br>
<br>
The try_files needs probably be changed to:<br>
<br>
try_files $uri $uri/ /v11/index.php?$query_string;<br>
<br>
<br>
rr<br>
<br>
______________________________<wbr>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span style="font-family:trebuchet ms,sans-serif"><br>Sincerely,<br><span>Plato P<br><a href="http://about.me/plato_p" target="_blank">about.me/plato_p</a></span></span></div></div>
</div></div>