Browse Source

Merge pull request #1798 from okpierre/patch-6

Update nginx.conf
daniel 5 years ago
parent
commit
8b7963b30c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      contrib/nginx.conf

+ 1 - 0
contrib/nginx.conf

@@ -30,6 +30,7 @@ server {
 
     location ~ \.php$ {
         fastcgi_split_path_info ^(.+\.php)(/.+)$;
+        try_files $fastcgi_script_name =404;
         fastcgi_pass unix:/run/php-fpm/php-fpm.sock; # make sure this is correct
         fastcgi_index index.php;
         include fastcgi_params;