nginx, php7.0-fpm and laravel, not able to set it up when the url has a prefix which the server doesn't have
Plato Puthur
plato.puthur at gmail.com
Mon Aug 6 15:29:40 UTC 2018
Hello,
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;
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?
On Mon, Aug 6, 2018 at 1:31 PM, Reinis Rozitis <r at roze.lv> wrote:
> > 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
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
--
Sincerely,
Plato P
about.me/plato_p
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20180806/8b9673c5/attachment.html>
More information about the nginx
mailing list