質問編集履歴

1

includeを削除したことによるdefault.confの上書き防止したところ、エラーメッセージが変わりました!

2019/03/04 12:40

投稿

Daimian
Daimian

スコア53

test CHANGED
File without changes
test CHANGED
@@ -30,9 +30,11 @@
30
30
 
31
31
  ```
32
32
 
33
- kaminari_nginx | 172.19.0.1 - - [04/Mar/2019:06:18:18 +0000] "GET /api/v1/lightning/2018 HTTP/1.1" 404 188 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36" "-"
34
-
35
- kaminari_nginx | 2019/03/04 06:18:18 [error] 7#7: *15 open() "/usr/share/nginx/html/api/v1/lightning/2018" failed (2: No such file or directory), client: 172.19.0.1, server: localhost, request: "GET /api/v1/lightning/2018 HTTP/1.1", host: "localhost"
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 warn;
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 80;
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://web;
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 web:3000;
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
  ```