I try to configure the "lando" tool with a nginx server on a Symfony 4.4 project.
But I have a problem, all URLs are not working For example :
- https://project.lndo.site/ ⇒ OK
- https://project.lndo.site/login ⇒ OK
- https://project.lndo.site/admin/dashboard ⇒ OK
- https://project.lndo.site/admin/?entity=Customer&action=list ⇒ not working i get "HTTP 403 Forbidden"
How can I fix the concern, I have tried several rewrite conditions, but none of them work.
The current configuration below
location / {
try_files $uri @rewriteapp;
}
location @rewriteapp {
rewrite ^(.*)$ /index.php/$1 last;
}
location ~ ^/index.php(/|$) {
include fastcgi_params;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTPS off;
}
Thank for your help !