<div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Hello<p>I am trying to set up a laravel installation in docker with php-fpm and
nginx server on a separate container. The issue is the laravel is
installed in a path like <code>/home/apps/foo</code> and the url I need is <code><a href="http://abcd.com/v11/">abcd.com/v11/</a></code>. I thought this was fairly simple, but I am not able to set it up. Here is my location part in the nginx config</p>
<pre><code>location /v11/ {
try_files $uri $uri/ /index.php?$query_string;
location ~ \.php$ {
fastcgi_index index.php;
fastcgi_pass php_wbv1.0:5000;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
include fastcgi_params;
}
}
</code></pre>
<p>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.</p>
<p>What is the right way to do this?</p><br clear="all"></div><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></span></span></div></div>
</div>