回答編集履歴
1
追記
test
CHANGED
@@ -109,3 +109,41 @@
|
|
109
109
|
}
|
110
110
|
|
111
111
|
```
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
**(追記)**
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
/etc/nginx/snippets/fastcgi-php.conf
|
120
|
+
|
121
|
+
```
|
122
|
+
|
123
|
+
# regex to split $uri to $fastcgi_script_name and $fastcgi_path
|
124
|
+
|
125
|
+
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
# Check that the PHP script exists before passing it
|
130
|
+
|
131
|
+
try_files $fastcgi_script_name =404;
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
# Bypass the fact that try_files resets $fastcgi_path_info
|
136
|
+
|
137
|
+
# see: http://trac.nginx.org/nginx/ticket/321
|
138
|
+
|
139
|
+
set $path_info $fastcgi_path_info;
|
140
|
+
|
141
|
+
fastcgi_param PATH_INFO $path_info;
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
fastcgi_index index.php;
|
146
|
+
|
147
|
+
include fastcgi.conf;
|
148
|
+
|
149
|
+
```
|