Skip to content

Commit 9f8a20d

Browse files
author
Arturo Blanco
authored
Update prestashop.stpl
1 parent 893c6d8 commit 9f8a20d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ server {
105105
}
106106

107107
location / {
108-
try_files $uri $uri/ /index.php?$args;
109-
110108
if (!-e $request_filename)
111109
{
112110
rewrite ^(.+)$ /index.php?q=$1 last;
@@ -120,7 +118,9 @@ server {
120118
location ~ [^/]\.php(/|$) {
121119
fastcgi_split_path_info ^(.+\.php)(/.+)$;
122120
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
123-
try_files $fastcgi_script_name /index.php$uri&$args =404;
121+
if (!-f $document_root$fastcgi_script_name) {
122+
return 404;
123+
}
124124
fastcgi_pass %backend_lsnr%;
125125
fastcgi_index index.php;
126126
include /etc/nginx/fastcgi_params;

0 commit comments

Comments
 (0)