質問編集履歴
4
wordpressのplugin情報を追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -43,6 +43,13 @@
|
|
43
43
|
・IPアドレス直接指定でアクセスしようとすると「このサイトにアクセスできません」が表示される
|
44
44
|
|
45
45
|
### 参考
|
46
|
+
wordpressに導入しているプラグインは、上記の状況につきwebからadmin画面にログインできませんが、
|
47
|
+
/wordpress/wp-content/plugins
|
48
|
+
を見る限りは
|
49
|
+
akismet
|
50
|
+
のみです。
|
51
|
+
|
52
|
+
|
46
53
|
httpd.confの中についてもコメントアウト以外を抜粋して記載します。
|
47
54
|
```
|
48
55
|
ServerRoot "/etc/httpd"
|
3
http.confの内容を追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -42,3 +42,69 @@
|
|
42
42
|
・EC2のセキュリティグループを元に戻しても同様
|
43
43
|
・IPアドレス直接指定でアクセスしようとすると「このサイトにアクセスできません」が表示される
|
44
44
|
|
45
|
+
### 参考
|
46
|
+
httpd.confの中についてもコメントアウト以外を抜粋して記載します。
|
47
|
+
```
|
48
|
+
ServerRoot "/etc/httpd"
|
49
|
+
Listen 80
|
50
|
+
Include conf.modules.d/*.conf
|
51
|
+
User apache
|
52
|
+
Group apache
|
53
|
+
ServerAdmin root@localhost
|
54
|
+
<Directory />
|
55
|
+
AllowOverride none
|
56
|
+
Require all denied
|
57
|
+
</Directory>
|
58
|
+
DocumentRoot "/var/www/html"
|
59
|
+
<Directory "/var/www">
|
60
|
+
AllowOverride None
|
61
|
+
# Allow open access:
|
62
|
+
Require all granted
|
63
|
+
</Directory>
|
64
|
+
<Directory "/var/www/html">
|
65
|
+
Options Indexes FollowSymLinks
|
66
|
+
AllowOverride None
|
67
|
+
Require all granted
|
68
|
+
</Directory>
|
69
|
+
<IfModule dir_module>
|
70
|
+
DirectoryIndex index.html
|
71
|
+
</IfModule>
|
72
|
+
<Files ".ht*">
|
73
|
+
Require all denied
|
74
|
+
</Files>
|
75
|
+
ErrorLog "logs/error_log"
|
76
|
+
LogLevel warn
|
77
|
+
<IfModule log_config_module>
|
78
|
+
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
79
|
+
LogFormat "%h %l %u %t \"%r\" %>s %b" common
|
80
|
+
<IfModule logio_module>
|
81
|
+
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
|
82
|
+
</IfModule>
|
83
|
+
CustomLog "logs/access_log" combined
|
84
|
+
</IfModule>
|
85
|
+
<IfModule alias_module>
|
86
|
+
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
|
87
|
+
</IfModule>
|
88
|
+
<Directory "/var/www/cgi-bin">
|
89
|
+
AllowOverride None
|
90
|
+
Options None
|
91
|
+
Require all granted
|
92
|
+
</Directory>
|
93
|
+
<IfModule mime_module>
|
94
|
+
TypesConfig /etc/mime.types
|
95
|
+
AddType application/x-compress .Z
|
96
|
+
AddType application/x-gzip .gz .tgz
|
97
|
+
AddType text/html .shtml
|
98
|
+
AddOutputFilter INCLUDES .shtml
|
99
|
+
</IfModule>
|
100
|
+
AddDefaultCharset UTF-8
|
101
|
+
<IfModule mime_magic_module>
|
102
|
+
MIMEMagicFile conf/magic
|
103
|
+
</IfModule>
|
104
|
+
EnableSendfile on
|
105
|
+
<IfModule mod_http2.c>
|
106
|
+
Protocols h2 h2c http/1.1
|
107
|
+
</IfModule>
|
108
|
+
IncludeOptional conf.d/*.conf
|
109
|
+
```
|
110
|
+
|
2
error_logが改行できていなかったため改行
test
CHANGED
File without changes
|
test
CHANGED
@@ -31,7 +31,10 @@
|
|
31
31
|
|
32
32
|
Apacheのerror_logには以下のようなエラーが30秒ごとに出力されています。 10.0.10.0/24は当該EC2のサブネットでして、ローカルループバックアドレスのstreamlitが使うポート(8501)に接続しにいってしまっていることは分かるのですが、解決法が分からず。
|
33
33
|
```
|
34
|
-
|
34
|
+
[Fri Mar 17 12:56:38.985703 2023] [proxy:error] [pid 2990] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:8501 (localhost:8501) failed
|
35
|
+
[Fri Mar 17 12:56:38.985746 2023] [proxy_http:error] [pid 2990] [client 10.0.10.246:17386] AH01114: HTTP: failed to make connection to backend: localhost
|
36
|
+
[Fri Mar 17 12:56:38.985854 2023] [proxy:error] [pid 2991] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:8501 (localhost:8501) failed
|
37
|
+
[Fri Mar 17 12:56:38.985882 2023] [proxy_http:error] [pid 2991] [client 10.0.10.246:17370] AH01114: HTTP: failed to make connection to backend: localhost
|
35
38
|
```
|
36
39
|
|
37
40
|
### 試したこと
|
1
発生している問題・エラーメッセージに、error_logの情報を追加しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -29,6 +29,10 @@
|
|
29
29
|
Service Unavailable
|
30
30
|
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
|
31
31
|
|
32
|
+
Apacheのerror_logには以下のようなエラーが30秒ごとに出力されています。 10.0.10.0/24は当該EC2のサブネットでして、ローカルループバックアドレスのstreamlitが使うポート(8501)に接続しにいってしまっていることは分かるのですが、解決法が分からず。
|
33
|
+
```
|
34
|
+
[Fri Mar 17 12:56:38.985703 2023] [proxy:error] [pid 2990] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:8501 (localhost:8501) failed [Fri Mar 17 12:56:38.985746 2023] [proxy_http:error] [pid 2990] [client 10.0.10.246:17386] AH01114: HTTP: failed to make connection to backend: localhost [Fri Mar 17 12:56:38.985854 2023] [proxy:error] [pid 2991] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:8501 (localhost:8501) failed [Fri Mar 17 12:56:38.985882 2023] [proxy_http:error] [pid 2991] [client 10.0.10.246:17370] AH01114: HTTP: failed to make connection to backend: localhost
|
35
|
+
```
|
32
36
|
|
33
37
|
### 試したこと
|
34
38
|
|