Skip to content

Commit 05aead4

Browse files
author
Arturo Blanco
authored
Update prestashop.tpl
1 parent 9f8a20d commit 05aead4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

install/deb/templates/web/nginx/php-fpm/prestashop.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ server {
100100
}
101101

102102
location / {
103-
try_files $uri $uri/ /index.php?$args;
104-
105103
if (!-e $request_filename)
106104
{
107105
rewrite ^(.+)$ /index.php?q=$1 last;
@@ -115,7 +113,9 @@ server {
115113
location ~ [^/]\.php(/|$) {
116114
fastcgi_split_path_info ^(.+\.php)(/.+)$;
117115
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
118-
try_files $fastcgi_script_name /index.php$uri&$args =404;
116+
if (!-f $document_root$fastcgi_script_name) {
117+
return 404;
118+
}
119119
fastcgi_pass %backend_lsnr%;
120120
fastcgi_index index.php;
121121
include /etc/nginx/fastcgi_params;

0 commit comments

Comments
 (0)