質問編集履歴
1
includeを削除したことによるdefault.confの上書き防止したところ、エラーメッセージが変わりました!
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,9 +30,11 @@
|
|
30
30
|
|
31
31
|
```
|
32
32
|
|
33
|
-
|
34
|
-
|
35
|
-
|
33
|
+
2019/03/04 12:37:28 [error] 6#6: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 172.28.0.1, server: localhost, request: "GET /api/v1/lightning/2018 HTTP/1.1", upstream: "http://127.0.0.1:3000/api/v1/lightning/2018", host: "localhost"
|
34
|
+
|
35
|
+
2019/03/04 12:37:28 [error] 6#6: *2 open() "/app/kaminari_API/kaminari_API_rails/public/500.html" failed (2: No such file or directory), client: 172.28.0.1, server: localhost, request: "GET /api/v1/lightning/2018 HTTP/1.1", upstream: "http://127.0.0.1:3000/api/v1/lightning/2018", host: "localhost"
|
36
|
+
|
37
|
+
|
36
38
|
|
37
39
|
```
|
38
40
|
|
@@ -136,7 +138,7 @@
|
|
136
138
|
|
137
139
|
|
138
140
|
|
139
|
-
error_log /var/log/nginx/error.log
|
141
|
+
error_log /var/log/nginx/error_test.log debug;
|
140
142
|
|
141
143
|
pid /var/run/nginx.pid;
|
142
144
|
|
@@ -166,7 +168,7 @@
|
|
166
168
|
|
167
169
|
|
168
170
|
|
169
|
-
access_log /var/log/nginx/access.log main;
|
171
|
+
access_log /var/log/nginx/access_test.log main;
|
170
172
|
|
171
173
|
|
172
174
|
|
@@ -186,9 +188,9 @@
|
|
186
188
|
|
187
189
|
server {
|
188
190
|
|
189
|
-
listen
|
191
|
+
listen 80;
|
190
|
-
|
192
|
+
|
191
|
-
server_name
|
193
|
+
server_name localhost;
|
192
194
|
|
193
195
|
|
194
196
|
|
@@ -198,7 +200,7 @@
|
|
198
200
|
|
199
201
|
location / {
|
200
202
|
|
201
|
-
proxy_pass http://
|
203
|
+
proxy_pass http://app_server;
|
202
204
|
|
203
205
|
proxy_set_header Host $http_host;
|
204
206
|
|
@@ -230,14 +232,10 @@
|
|
230
232
|
|
231
233
|
upstream app_server {
|
232
234
|
|
233
|
-
server
|
235
|
+
server 127.0.0.1:3000;
|
234
236
|
|
235
237
|
}
|
236
238
|
|
237
|
-
|
238
|
-
|
239
|
-
include /etc/nginx/conf.d/*.conf;
|
240
|
-
|
241
239
|
}
|
242
240
|
|
243
241
|
```
|