質問するログイン新規登録

回答編集履歴

1

追記

2016/10/10 04:36

投稿

popobot
popobot

スコア6588

answer CHANGED
@@ -53,4 +53,23 @@
53
53
  deny all;
54
54
  }
55
55
  }
56
+ ```
57
+
58
+ **(追記)**
59
+
60
+ /etc/nginx/snippets/fastcgi-php.conf
61
+ ```
62
+ # regex to split $uri to $fastcgi_script_name and $fastcgi_path
63
+ fastcgi_split_path_info ^(.+\.php)(/.+)$;
64
+
65
+ # Check that the PHP script exists before passing it
66
+ try_files $fastcgi_script_name =404;
67
+
68
+ # Bypass the fact that try_files resets $fastcgi_path_info
69
+ # see: http://trac.nginx.org/nginx/ticket/321
70
+ set $path_info $fastcgi_path_info;
71
+ fastcgi_param PATH_INFO $path_info;
72
+
73
+ fastcgi_index index.php;
74
+ include fastcgi.conf;
56
75
  ```