We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f8a20d commit 05aead4Copy full SHA for 05aead4
install/deb/templates/web/nginx/php-fpm/prestashop.tpl
@@ -100,8 +100,6 @@ server {
100
}
101
102
location / {
103
- try_files $uri $uri/ /index.php?$args;
104
-
105
if (!-e $request_filename)
106
{
107
rewrite ^(.+)$ /index.php?q=$1 last;
@@ -115,7 +113,9 @@ server {
115
113
location ~ [^/]\.php(/|$) {
116
114
fastcgi_split_path_info ^(.+\.php)(/.+)$;
117
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
118
- try_files $fastcgi_script_name /index.php$uri&$args =404;
+ if (!-f $document_root$fastcgi_script_name) {
+ return 404;
+ }
119
fastcgi_pass %backend_lsnr%;
120
fastcgi_index index.php;
121
include /etc/nginx/fastcgi_params;
0 commit comments