nginx, php7.0-fpm and laravel, not able to set it up when the url has a prefix which the server doesn't have

Reinis Rozitis r at roze.lv
Mon Aug 6 08:01:59 UTC 2018


> 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?


The try_files needs probably be changed to:

try_files $uri $uri/ /v11/index.php?$query_string;


rr



More information about the nginx mailing list