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 893c6d8 commit 9f8a20dCopy full SHA for 9f8a20d
install/deb/templates/web/nginx/php-fpm/prestashop.stpl
@@ -105,8 +105,6 @@ server {
105
}
106
107
location / {
108
- try_files $uri $uri/ /index.php?$args;
109
-
110
if (!-e $request_filename)
111
{
112
rewrite ^(.+)$ /index.php?q=$1 last;
@@ -120,7 +118,9 @@ server {
120
118
location ~ [^/]\.php(/|$) {
121
119
fastcgi_split_path_info ^(.+\.php)(/.+)$;
122
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
123
- try_files $fastcgi_script_name /index.php$uri&$args =404;
+ if (!-f $document_root$fastcgi_script_name) {
+ return 404;
+ }
124
fastcgi_pass %backend_lsnr%;
125
fastcgi_index index.php;
126
include /etc/nginx/fastcgi_params;
0 commit comments