Browse Source

Update prestashop.tpl

Arturo Blanco 5 years ago
parent
commit
05aead4bfe
1 changed files with 3 additions and 3 deletions
  1. 3 3
      install/deb/templates/web/nginx/php-fpm/prestashop.tpl

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

@@ -100,8 +100,6 @@ server {
     }
 
     location / {
-        try_files $uri $uri/ /index.php?$args;
-
         if (!-e $request_filename)
         {
             rewrite ^(.+)$ /index.php?q=$1 last;
@@ -115,7 +113,9 @@ server {
         location ~ [^/]\.php(/|$) {
 	    fastcgi_split_path_info ^(.+\.php)(/.+)$;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
-            try_files $fastcgi_script_name /index.php$uri&$args =404;
+            if (!-f $document_root$fastcgi_script_name) {
+                return  404;
+            }
             fastcgi_pass %backend_lsnr%;
             fastcgi_index index.php;
             include /etc/nginx/fastcgi_params;