質問編集履歴
5
d2えで
title
CHANGED
File without changes
|
body
CHANGED
@@ -208,4 +208,11 @@
|
|
208
208
|
|
209
209
|
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"
|
210
210
|
|
211
|
-
```
|
211
|
+
```
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
追記:
|
216
|
+
これが参考になりそうな予感。
|
217
|
+
https://teratail.com/questions/47368
|
218
|
+
ちょっとづつ解決に近づいてきた予感。
|
4
wでえqrf
title
CHANGED
File without changes
|
body
CHANGED
@@ -200,17 +200,7 @@
|
|
200
200
|
|
201
201
|
追記:
|
202
202
|
var_dump($_SERVER)の時点でそれぞれの出力に違いがありますね、、、
|
203
|
-
|
204
203
|
nginxのエラーログには下記がでています。
|
205
|
-
```ここに言語を入力
|
206
|
-
|
207
|
-
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"
|
208
|
-
|
209
|
-
```
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
nginxのエラーログには下記がでています。
|
214
204
|
ファイルをディレクトリもひらけないと、、、
|
215
205
|
うーん、apacheと何が違うのでしょう、、、
|
216
206
|
|
3
せ3d
title
CHANGED
File without changes
|
body
CHANGED
@@ -199,4 +199,23 @@
|
|
199
199
|
|
200
200
|
|
201
201
|
追記:
|
202
|
-
var_dump($_SERVER)の時点でそれぞれの出力に違いがありますね、、、
|
202
|
+
var_dump($_SERVER)の時点でそれぞれの出力に違いがありますね、、、
|
203
|
+
|
204
|
+
nginxのエラーログには下記がでています。
|
205
|
+
```ここに言語を入力
|
206
|
+
|
207
|
+
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"
|
208
|
+
|
209
|
+
```
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
nginxのエラーログには下記がでています。
|
214
|
+
ファイルをディレクトリもひらけないと、、、
|
215
|
+
うーん、apacheと何が違うのでしょう、、、
|
216
|
+
|
217
|
+
```ここに言語を入力
|
218
|
+
|
219
|
+
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"
|
220
|
+
|
221
|
+
```
|
2
dぇd
title
CHANGED
File without changes
|
body
CHANGED
@@ -195,4 +195,8 @@
|
|
195
195
|
#}
|
196
196
|
}
|
197
197
|
|
198
|
-
```
|
198
|
+
```
|
199
|
+
|
200
|
+
|
201
|
+
追記:
|
202
|
+
var_dump($_SERVER)の時点でそれぞれの出力に違いがありますね、、、
|
1
dedrfdwed
title
CHANGED
File without changes
|
body
CHANGED
@@ -22,4 +22,177 @@
|
|
22
22
|
apacheの場合だとfuelphpには「それ」があって、
|
23
23
|
nginxの場合だとfuelphpには「それ」がないからなのかなとか思ってます。
|
24
24
|
|
25
|
-
どう調べたらいいかも分からず、、、
|
25
|
+
「それ」があるかどうかも「それ」が何なのかも分からないので、どう調べたらいいかも分からず、、、
|
26
|
+
|
27
|
+
|
28
|
+
一応nginxの設定ファイルです。
|
29
|
+
|
30
|
+
```ここに言語を入力
|
31
|
+
#load_module "modules/ngx_http_image_filter_module.so";
|
32
|
+
#load_module "modules/ngx_http_perl_module.so";
|
33
|
+
#load_module "modules/ngx_http_xslt_filter_module.so";
|
34
|
+
#load_module "modules/ngx_mail_module.so";
|
35
|
+
#load_module "modules/ngx_stream_module.so";
|
36
|
+
|
37
|
+
user root admin;
|
38
|
+
worker_processes 2;
|
39
|
+
|
40
|
+
events {
|
41
|
+
worker_connections 1024;
|
42
|
+
}
|
43
|
+
|
44
|
+
http {
|
45
|
+
include mime.types;
|
46
|
+
default_type text/html;
|
47
|
+
gzip on;
|
48
|
+
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;
|
49
|
+
|
50
|
+
sendfile on;
|
51
|
+
|
52
|
+
server {
|
53
|
+
listen 80 default_server;
|
54
|
+
|
55
|
+
# MAMP DOCUMENT_ROOT !! Don't remove this line !!
|
56
|
+
root "/Applications/MAMP/htdocs";
|
57
|
+
autoindex on;
|
58
|
+
|
59
|
+
access_log /Applications/MAMP/logs/nginx_access.log;
|
60
|
+
error_log /Applications/MAMP/logs/nginx_error.log;
|
61
|
+
|
62
|
+
location / {
|
63
|
+
index index.html index.php;
|
64
|
+
}
|
65
|
+
|
66
|
+
location ~* /MAMP[^-]*(.*)$ {
|
67
|
+
root /Applications/MAMP/bin;
|
68
|
+
index index.php;
|
69
|
+
|
70
|
+
location ~ .php$ {
|
71
|
+
try_files $uri =404;
|
72
|
+
fastcgi_pass unix:/Applications/MAMP/Library/logs/fastcgi/nginxFastCGI.sock;
|
73
|
+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
74
|
+
include fastcgi_params;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
location ~* /phpMyAdmin(.*)$ {
|
79
|
+
root /Applications/MAMP/bin;
|
80
|
+
index index.php;
|
81
|
+
|
82
|
+
location ~ .php$ {
|
83
|
+
try_files $uri =404;
|
84
|
+
fastcgi_pass unix:/Applications/MAMP/Library/logs/fastcgi/nginxFastCGI.sock;
|
85
|
+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
86
|
+
include fastcgi_params;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|
90
|
+
location ~* /phpPgAdmin(.*)$ {
|
91
|
+
root /Applications/MAMP/bin;
|
92
|
+
index index.php;
|
93
|
+
|
94
|
+
location ~ .php$ {
|
95
|
+
try_files $uri =404;
|
96
|
+
fastcgi_pass unix:/Applications/MAMP/Library/logs/fastcgi/nginxFastCGI.sock;
|
97
|
+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
98
|
+
include fastcgi_params;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
location ~* /phpLiteAdmin(.*)$ {
|
103
|
+
root /Applications/MAMP/bin;
|
104
|
+
index index.php;
|
105
|
+
|
106
|
+
location ~ .php$ {
|
107
|
+
try_files $uri =404;
|
108
|
+
fastcgi_pass unix:/Applications/MAMP/Library/logs/fastcgi/nginxFastCGI.sock;
|
109
|
+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
110
|
+
include fastcgi_params;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
|
114
|
+
location ~* /adminer(.*)$ {
|
115
|
+
root /Applications/MAMP/bin;
|
116
|
+
index adminer.php;
|
117
|
+
|
118
|
+
location ~ .php$ {
|
119
|
+
try_files $uri =404;
|
120
|
+
fastcgi_pass unix:/Applications/MAMP/Library/logs/fastcgi/nginxFastCGI.sock;
|
121
|
+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
122
|
+
include fastcgi_params;
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
126
|
+
location /icons {
|
127
|
+
alias /Applications/MAMP/Library/icons;
|
128
|
+
autoindex on;
|
129
|
+
}
|
130
|
+
|
131
|
+
location /favicon.ico {
|
132
|
+
alias /Applications/MAMP/bin/favicon.ico;
|
133
|
+
# log_not_found off;
|
134
|
+
# access_log off;
|
135
|
+
}
|
136
|
+
|
137
|
+
location ~ .php$ {
|
138
|
+
try_files $uri =404;
|
139
|
+
fastcgi_pass unix:/Applications/MAMP/Library/logs/fastcgi/nginxFastCGI.sock;
|
140
|
+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
141
|
+
include fastcgi_params;
|
142
|
+
}
|
143
|
+
|
144
|
+
location ~ /. {
|
145
|
+
deny all;
|
146
|
+
}
|
147
|
+
|
148
|
+
# location ~* .(gif|jpg|png|pdf)$ {
|
149
|
+
# expires 30d;
|
150
|
+
# }
|
151
|
+
|
152
|
+
# location = /robots.txt {
|
153
|
+
# allow all;
|
154
|
+
# log_not_found off;
|
155
|
+
# access_log off;
|
156
|
+
# }
|
157
|
+
|
158
|
+
# location ~* .(txt|log)$ {
|
159
|
+
# allow 127.0.0.1;
|
160
|
+
# deny all;
|
161
|
+
# }
|
162
|
+
|
163
|
+
# location ~ ..*/.*.php$ {
|
164
|
+
# return 403;
|
165
|
+
# }
|
166
|
+
|
167
|
+
location /nginx_status {
|
168
|
+
stub_status on;
|
169
|
+
access_log off;
|
170
|
+
allow 127.0.0.1;
|
171
|
+
deny all;
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
# HTTPS server
|
176
|
+
#
|
177
|
+
#server {
|
178
|
+
# listen 443 ssl;
|
179
|
+
# server_name localhost;
|
180
|
+
|
181
|
+
# ssl_certificate cert.pem;
|
182
|
+
# ssl_certificate_key cert.key;
|
183
|
+
|
184
|
+
# ssl_session_cache shared:SSL:1m;
|
185
|
+
# ssl_session_timeout 5m;
|
186
|
+
|
187
|
+
# ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
188
|
+
# ssl_ciphers HIGH:!aNULL:!MD5;
|
189
|
+
# ssl_prefer_server_ciphers on;
|
190
|
+
|
191
|
+
# location / {
|
192
|
+
# root html;
|
193
|
+
# index index.html index.htm;
|
194
|
+
# }
|
195
|
+
#}
|
196
|
+
}
|
197
|
+
|
198
|
+
```
|