質問編集履歴
1
追記を追加しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -531,3 +531,29 @@
|
|
531
531
|
}
|
532
532
|
|
533
533
|
```
|
534
|
+
|
535
|
+
|
536
|
+
|
537
|
+
|
538
|
+
|
539
|
+
### 追記1
|
540
|
+
|
541
|
+
別サイトで教えていただいた内容
|
542
|
+
|
543
|
+
|
544
|
+
|
545
|
+
`/etc/nginx/conf.d/【webapp】.conf` の `location @app` 内に`proxy_pass http://app_server;`を追加する
|
546
|
+
|
547
|
+
|
548
|
+
|
549
|
+
を反映させるとnginxのエラー内容が
|
550
|
+
|
551
|
+
```
|
552
|
+
|
553
|
+
[error] 9028#0: *6 connect() to unix:/var/www/rails/【webapp】/tmp/sockets/.unicorn.sock failed (111: Connection refused) while connecting to upstream, client: 【my_global_ip】, server: 【myDomain】, request: "GET / HTTP/1.1", upstream: "http://unix:/var/www/rails/【webapp】/tmp/sockets/.unicorn.sock:/", host: "【myDomain】"
|
554
|
+
|
555
|
+
```
|
556
|
+
|
557
|
+
|
558
|
+
|
559
|
+
に変わりました。
|