瀏覽代碼

Merge pull request #1798 from okpierre/patch-6

Update nginx.conf
daniel 5 年之前
父節點
當前提交
8b7963b30c
共有 1 個文件被更改,包括 1 次插入0 次删除
  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;