質問編集履歴
5
d2えで
test
CHANGED
File without changes
|
test
CHANGED
@@ -419,3 +419,17 @@
|
|
419
419
|
|
420
420
|
|
421
421
|
```
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
追記:
|
430
|
+
|
431
|
+
これが参考になりそうな予感。
|
432
|
+
|
433
|
+
https://teratail.com/questions/47368
|
434
|
+
|
435
|
+
ちょっとづつ解決に近づいてきた予感。
|
4
wでえqrf
test
CHANGED
File without changes
|
test
CHANGED
@@ -402,10 +402,14 @@
|
|
402
402
|
|
403
403
|
var_dump($_SERVER)の時点でそれぞれの出力に違いがありますね、、、
|
404
404
|
|
405
|
-
|
406
|
-
|
407
405
|
nginxのエラーログには下記がでています。
|
408
406
|
|
407
|
+
ファイルをディレクトリもひらけないと、、、
|
408
|
+
|
409
|
+
うーん、apacheと何が違うのでしょう、、、
|
410
|
+
|
411
|
+
|
412
|
+
|
409
413
|
```ここに言語を入力
|
410
414
|
|
411
415
|
|
@@ -415,27 +419,3 @@
|
|
415
419
|
|
416
420
|
|
417
421
|
```
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
nginxのエラーログには下記がでています。
|
426
|
-
|
427
|
-
ファイルをディレクトリもひらけないと、、、
|
428
|
-
|
429
|
-
うーん、apacheと何が違うのでしょう、、、
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
```ここに言語を入力
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
2018/02/09 19:47:49 [error] 40056#0: *1 open() "/Applications/MAMP/htdocs/Dev/personal/web/model_fuelphp/public/welcome/hello" failed (2: No such file or directory), client: 127.0.0.1, server: , request: "GET /Dev/personal/web/model_fuelphp/public/welcome/hello HTTP/1.1", host: "localhost"
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
```
|
3
せ3d
test
CHANGED
File without changes
|
test
CHANGED
@@ -401,3 +401,41 @@
|
|
401
401
|
追記:
|
402
402
|
|
403
403
|
var_dump($_SERVER)の時点でそれぞれの出力に違いがありますね、、、
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
nginxのエラーログには下記がでています。
|
408
|
+
|
409
|
+
```ここに言語を入力
|
410
|
+
|
411
|
+
|
412
|
+
|
413
|
+
2018/02/09 19:47:49 [error] 40056#0: *1 open() "/Applications/MAMP/htdocs/Dev/personal/web/model_fuelphp/public/welcome/hello" failed (2: No such file or directory), client: 127.0.0.1, server: , request: "GET /Dev/personal/web/model_fuelphp/public/welcome/hello HTTP/1.1", host: "localhost"
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
```
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
nginxのエラーログには下記がでています。
|
426
|
+
|
427
|
+
ファイルをディレクトリもひらけないと、、、
|
428
|
+
|
429
|
+
うーん、apacheと何が違うのでしょう、、、
|
430
|
+
|
431
|
+
|
432
|
+
|
433
|
+
```ここに言語を入力
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
2018/02/09 19:47:49 [error] 40056#0: *1 open() "/Applications/MAMP/htdocs/Dev/personal/web/model_fuelphp/public/welcome/hello" failed (2: No such file or directory), client: 127.0.0.1, server: , request: "GET /Dev/personal/web/model_fuelphp/public/welcome/hello HTTP/1.1", host: "localhost"
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
```
|
2
dぇd
test
CHANGED
File without changes
|
test
CHANGED
@@ -393,3 +393,11 @@
|
|
393
393
|
|
394
394
|
|
395
395
|
```
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
追記:
|
402
|
+
|
403
|
+
var_dump($_SERVER)の時点でそれぞれの出力に違いがありますね、、、
|
1
dedrfdwed
test
CHANGED
File without changes
|
test
CHANGED
@@ -46,4 +46,350 @@
|
|
46
46
|
|
47
47
|
|
48
48
|
|
49
|
-
どう調べたらいいかも分からず、、、
|
49
|
+
「それ」があるかどうかも「それ」が何なのかも分からないので、どう調べたらいいかも分からず、、、
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
一応nginxの設定ファイルです。
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
```ここに言語を入力
|
60
|
+
|
61
|
+
#load_module "modules/ngx_http_image_filter_module.so";
|
62
|
+
|
63
|
+
#load_module "modules/ngx_http_perl_module.so";
|
64
|
+
|
65
|
+
#load_module "modules/ngx_http_xslt_filter_module.so";
|
66
|
+
|
67
|
+
#load_module "modules/ngx_mail_module.so";
|
68
|
+
|
69
|
+
#load_module "modules/ngx_stream_module.so";
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
user root admin;
|
74
|
+
|
75
|
+
worker_processes 2;
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
events {
|
80
|
+
|
81
|
+
worker_connections 1024;
|
82
|
+
|
83
|
+
}
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
http {
|
88
|
+
|
89
|
+
include mime.types;
|
90
|
+
|
91
|
+
default_type text/html;
|
92
|
+
|
93
|
+
gzip on;
|
94
|
+
|
95
|
+
gzip_types text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon;
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
sendfile on;
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
server {
|
104
|
+
|
105
|
+
listen 80 default_server;
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
# MAMP DOCUMENT_ROOT !! Don't remove this line !!
|
110
|
+
|
111
|
+
root "/Applications/MAMP/htdocs";
|
112
|
+
|
113
|
+
autoindex on;
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
access_log /Applications/MAMP/logs/nginx_access.log;
|
118
|
+
|
119
|
+
error_log /Applications/MAMP/logs/nginx_error.log;
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
location / {
|
124
|
+
|
125
|
+
index index.html index.php;
|
126
|
+
|
127
|
+
}
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
location ~* /MAMP[^-]*(.*)$ {
|
132
|
+
|
133
|
+
root /Applications/MAMP/bin;
|
134
|
+
|
135
|
+
index index.php;
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
location ~ .php$ {
|
140
|
+
|
141
|
+
try_files $uri =404;
|
142
|
+
|
143
|
+
fastcgi_pass unix:/Applications/MAMP/Library/logs/fastcgi/nginxFastCGI.sock;
|
144
|
+
|
145
|
+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
146
|
+
|
147
|
+
include fastcgi_params;
|
148
|
+
|
149
|
+
}
|
150
|
+
|
151
|
+
}
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
location ~* /phpMyAdmin(.*)$ {
|
156
|
+
|
157
|
+
root /Applications/MAMP/bin;
|
158
|
+
|
159
|
+
index index.php;
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
location ~ .php$ {
|
164
|
+
|
165
|
+
try_files $uri =404;
|
166
|
+
|
167
|
+
fastcgi_pass unix:/Applications/MAMP/Library/logs/fastcgi/nginxFastCGI.sock;
|
168
|
+
|
169
|
+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
170
|
+
|
171
|
+
include fastcgi_params;
|
172
|
+
|
173
|
+
}
|
174
|
+
|
175
|
+
}
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
location ~* /phpPgAdmin(.*)$ {
|
180
|
+
|
181
|
+
root /Applications/MAMP/bin;
|
182
|
+
|
183
|
+
index index.php;
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
location ~ .php$ {
|
188
|
+
|
189
|
+
try_files $uri =404;
|
190
|
+
|
191
|
+
fastcgi_pass unix:/Applications/MAMP/Library/logs/fastcgi/nginxFastCGI.sock;
|
192
|
+
|
193
|
+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
194
|
+
|
195
|
+
include fastcgi_params;
|
196
|
+
|
197
|
+
}
|
198
|
+
|
199
|
+
}
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
location ~* /phpLiteAdmin(.*)$ {
|
204
|
+
|
205
|
+
root /Applications/MAMP/bin;
|
206
|
+
|
207
|
+
index index.php;
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
location ~ .php$ {
|
212
|
+
|
213
|
+
try_files $uri =404;
|
214
|
+
|
215
|
+
fastcgi_pass unix:/Applications/MAMP/Library/logs/fastcgi/nginxFastCGI.sock;
|
216
|
+
|
217
|
+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
218
|
+
|
219
|
+
include fastcgi_params;
|
220
|
+
|
221
|
+
}
|
222
|
+
|
223
|
+
}
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
location ~* /adminer(.*)$ {
|
228
|
+
|
229
|
+
root /Applications/MAMP/bin;
|
230
|
+
|
231
|
+
index adminer.php;
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
location ~ .php$ {
|
236
|
+
|
237
|
+
try_files $uri =404;
|
238
|
+
|
239
|
+
fastcgi_pass unix:/Applications/MAMP/Library/logs/fastcgi/nginxFastCGI.sock;
|
240
|
+
|
241
|
+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
242
|
+
|
243
|
+
include fastcgi_params;
|
244
|
+
|
245
|
+
}
|
246
|
+
|
247
|
+
}
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
location /icons {
|
252
|
+
|
253
|
+
alias /Applications/MAMP/Library/icons;
|
254
|
+
|
255
|
+
autoindex on;
|
256
|
+
|
257
|
+
}
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
location /favicon.ico {
|
262
|
+
|
263
|
+
alias /Applications/MAMP/bin/favicon.ico;
|
264
|
+
|
265
|
+
# log_not_found off;
|
266
|
+
|
267
|
+
# access_log off;
|
268
|
+
|
269
|
+
}
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
location ~ .php$ {
|
274
|
+
|
275
|
+
try_files $uri =404;
|
276
|
+
|
277
|
+
fastcgi_pass unix:/Applications/MAMP/Library/logs/fastcgi/nginxFastCGI.sock;
|
278
|
+
|
279
|
+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
280
|
+
|
281
|
+
include fastcgi_params;
|
282
|
+
|
283
|
+
}
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
location ~ /. {
|
288
|
+
|
289
|
+
deny all;
|
290
|
+
|
291
|
+
}
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
# location ~* .(gif|jpg|png|pdf)$ {
|
296
|
+
|
297
|
+
# expires 30d;
|
298
|
+
|
299
|
+
# }
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
# location = /robots.txt {
|
304
|
+
|
305
|
+
# allow all;
|
306
|
+
|
307
|
+
# log_not_found off;
|
308
|
+
|
309
|
+
# access_log off;
|
310
|
+
|
311
|
+
# }
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
# location ~* .(txt|log)$ {
|
316
|
+
|
317
|
+
# allow 127.0.0.1;
|
318
|
+
|
319
|
+
# deny all;
|
320
|
+
|
321
|
+
# }
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
# location ~ ..*/.*.php$ {
|
326
|
+
|
327
|
+
# return 403;
|
328
|
+
|
329
|
+
# }
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
location /nginx_status {
|
334
|
+
|
335
|
+
stub_status on;
|
336
|
+
|
337
|
+
access_log off;
|
338
|
+
|
339
|
+
allow 127.0.0.1;
|
340
|
+
|
341
|
+
deny all;
|
342
|
+
|
343
|
+
}
|
344
|
+
|
345
|
+
}
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
# HTTPS server
|
350
|
+
|
351
|
+
#
|
352
|
+
|
353
|
+
#server {
|
354
|
+
|
355
|
+
# listen 443 ssl;
|
356
|
+
|
357
|
+
# server_name localhost;
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
# ssl_certificate cert.pem;
|
362
|
+
|
363
|
+
# ssl_certificate_key cert.key;
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
# ssl_session_cache shared:SSL:1m;
|
368
|
+
|
369
|
+
# ssl_session_timeout 5m;
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
# ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
374
|
+
|
375
|
+
# ssl_ciphers HIGH:!aNULL:!MD5;
|
376
|
+
|
377
|
+
# ssl_prefer_server_ciphers on;
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
# location / {
|
382
|
+
|
383
|
+
# root html;
|
384
|
+
|
385
|
+
# index index.html index.htm;
|
386
|
+
|
387
|
+
# }
|
388
|
+
|
389
|
+
#}
|
390
|
+
|
391
|
+
}
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
```
|