質問編集履歴
1
includeを削除したことによるdefault.confの上書き防止したところ、エラーメッセージが変わりました!
title
CHANGED
File without changes
|
body
CHANGED
@@ -14,8 +14,9 @@
|
|
14
14
|
その時は
|
15
15
|
|
16
16
|
```
|
17
|
-
|
18
|
-
|
17
|
+
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"
|
18
|
+
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"
|
19
|
+
|
19
20
|
```
|
20
21
|
と表示されます。
|
21
22
|
|
@@ -67,7 +68,7 @@
|
|
67
68
|
user nginx;
|
68
69
|
worker_processes auto;
|
69
70
|
|
70
|
-
error_log /var/log/nginx/
|
71
|
+
error_log /var/log/nginx/error_test.log debug;
|
71
72
|
pid /var/run/nginx.pid;
|
72
73
|
|
73
74
|
events {
|
@@ -82,7 +83,7 @@
|
|
82
83
|
'$status $body_bytes_sent "$http_referer" '
|
83
84
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
84
85
|
|
85
|
-
access_log /var/log/nginx/
|
86
|
+
access_log /var/log/nginx/access_test.log main;
|
86
87
|
|
87
88
|
sendfile on;
|
88
89
|
#tcp_nopush on;
|
@@ -92,13 +93,13 @@
|
|
92
93
|
gzip on;
|
93
94
|
|
94
95
|
server {
|
95
|
-
listen
|
96
|
+
listen 80;
|
96
|
-
server_name
|
97
|
+
server_name localhost;
|
97
98
|
|
98
99
|
root /app/kaminari_API/kaminari_API_rails/public;
|
99
100
|
|
100
101
|
location / {
|
101
|
-
proxy_pass http://
|
102
|
+
proxy_pass http://app_server;
|
102
103
|
proxy_set_header Host $http_host;
|
103
104
|
proxy_set_header X-Real-IP $remote_addr;
|
104
105
|
proxy_set_header Client-IP $remote_addr;
|
@@ -114,10 +115,8 @@
|
|
114
115
|
}
|
115
116
|
|
116
117
|
upstream app_server {
|
117
|
-
server
|
118
|
+
server 127.0.0.1:3000;
|
118
119
|
}
|
119
|
-
|
120
|
-
include /etc/nginx/conf.d/*.conf;
|
121
120
|
}
|
122
121
|
```
|
123
122
|
|