teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

4

試したことを追記しました。

2019/06/17 05:41

投稿

ruuusaamarki
ruuusaamarki

スコア470

title CHANGED
File without changes
body CHANGED
@@ -146,6 +146,33 @@
146
146
  ```
147
147
  と表示されます。
148
148
 
149
+ ### 試したこと2
150
+ docker ps で確認すると以下のようになっておりました。
151
+ ```
152
+ $docker ps
153
+ CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
154
+ hjkasduyt7 wordpress "docker-entrypoint." 2 hours ago Up 2 hours 80/tcp wordpress_1
155
+ 876sdfsafd mysql:5.7 "docker-entrypoint." 2 hours ago Up 2 hours 3306/tcp, 33060/tcp mysql_1
156
+ 76876jkhkk jrcs/letsencrypt-nginx-proxy-companion "/bin/bash /app/ent" 2 hours ago Up 2 hours nginx-letsencrypt
157
+ 897asdf876 jwilder/nginx-proxy "/app/docker-entryp" 2 hours ago Up 2 hours 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp nginx-proxy
158
+ ```
159
+
160
+ ### 試したこと3
161
+ 以下のコマンドでapacheの設定ファイルを確認しようとしましたが
162
+ debianでのapache設定ファイルのどこを確認したら良いかがよくわかりませんでした。
163
+ ```
164
+ $ docker-compose exec wordpress bash
165
+ ```
166
+
167
+ ### 試したこと3
168
+ テストとしてwordpressをやめてhttpdコンテナで接続してみましたが
169
+ 同じ現象になりました。
170
+ ブラウザからhttpでは正常に接続できてhttpsだと500のサーバエラー(nginx)が返ってきます。
171
+
172
+ ### 少しわかってきたこと
173
+ プロキシ→ウェブサーバの通信は80ポートで行われているっぽい。
174
+
175
+
149
176
  ### 参考ページ
150
177
  当初SSLなしの環境で
151
178
  https://suin.io/561

3

ログを編集いたしました。

2019/06/17 05:41

投稿

ruuusaamarki
ruuusaamarki

スコア470

title CHANGED
File without changes
body CHANGED
@@ -12,10 +12,16 @@
12
12
  ```
13
13
  と出ます。
14
14
 
15
- またDE/sharedディレクトリにてlog見ると以下のようになりま
15
+ ログ確認したころ以下のようになりました
16
+ sharedのログ
16
17
  ```log
17
18
  nginx-proxy | nginx.1 | example.com 172.20.0.1 - - [14/Jun/2019:02:55:51 +0000] "GET / HTTP/2.0" 500 193 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:67.0) Gecko/20100101 Firefox/67.0"
18
19
 
20
+ ```
21
+
22
+ wptest1のログ
23
+ ```log
24
+
19
25
  ESC[36mwordpress_1 |ESC[0m AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.20.0.5. Set the 'ServerName' directive globally to suppress this message
20
26
  ESC[36mwordpress_1 |ESC[0m [Fri Jun 14 02:55:46.377404 2019] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.25 (Debian) PHP/7.3.6 configured -- resuming normal operations
21
27
 

2

logを追加しました。

2019/06/15 01:38

投稿

ruuusaamarki
ruuusaamarki

スコア470

title CHANGED
File without changes
body CHANGED
@@ -14,9 +14,11 @@
14
14
 
15
15
  またDE/sharedディレクトリにてlogを見ると以下のようになります。
16
16
  ```log
17
- $docker-compose logs
18
17
  nginx-proxy | nginx.1 | example.com 172.20.0.1 - - [14/Jun/2019:02:55:51 +0000] "GET / HTTP/2.0" 500 193 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:67.0) Gecko/20100101 Firefox/67.0"
19
18
 
19
+ ESC[36mwordpress_1 |ESC[0m AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.20.0.5. Set the 'ServerName' directive globally to suppress this message
20
+ ESC[36mwordpress_1 |ESC[0m [Fri Jun 14 02:55:46.377404 2019] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.25 (Debian) PHP/7.3.6 configured -- resuming normal operations
21
+
20
22
  ```
21
23
 
22
24
  ### ディレクトリ構成

1

logを追記しました

2019/06/14 06:52

投稿

ruuusaamarki
ruuusaamarki

スコア470

title CHANGED
File without changes
body CHANGED
@@ -12,6 +12,13 @@
12
12
  ```
13
13
  と出ます。
14
14
 
15
+ またDE/sharedディレクトリにてlogを見ると以下のようになります。
16
+ ```log
17
+ $docker-compose logs
18
+ nginx-proxy | nginx.1 | example.com 172.20.0.1 - - [14/Jun/2019:02:55:51 +0000] "GET / HTTP/2.0" 500 193 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:67.0) Gecko/20100101 Firefox/67.0"
19
+
20
+ ```
21
+
15
22
  ### ディレクトリ構成
16
23
  DE
17
24
  ∟shared