Open naota7118 opened 1 month ago
Apacheコンテナのログを見ると、Railsコンテナに接続できていない。
[Thu Aug 15 02:28:10.206208 2024] [proxy:error] [pid 8:tid 18] (111)Connection refused: AH00957: http: attempt to connect to 172.24.0.2:3000 (rails:3000) failed
[Thu Aug 15 02:28:10.207274 2024] [proxy_http:error] [pid 8:tid 18] [client 10.0.0.4:59272] AH01114: HTTP: failed to make connection to backend: rails
I, [2024-08-19T02:03:31.971435 #1] INFO -- : [3e19f4b0-4c0c-4d5d-a848-ba8567bb2822] Started GET "/.git/config" for 170.64.201.123 at 2024-08-19 02:03:31 +0000
E, [2024-08-19T02:03:31.971986 #1] ERROR -- : [3e19f4b0-4c0c-4d5d-a848-ba8567bb2822]
[3e19f4b0-4c0c-4d5d-a848-ba8567bb2822] ActionController::RoutingError (No route matches [GET] "/.git/config"):
どこで、/.git/config
へのGETリクエストが送られている?
webサーバーから.gitへのアクセスを禁止した。
# .git/ フォルダ以下のファイル・ディレクトリへのアクセスを禁止
<Directorymatch "^/.*/\.git/">
Order deny,allow
Deny from all
</Directorymatch>
まだ504エラーが出る。
E, [2024-08-19T03:09:06.844095 #1] ERROR -- : [1ccd0e39-d4f3-42a4-8fe3-32a191957ee9]
[1ccd0e39-d4f3-42a4-8fe3-32a191957ee9] ActionController::RoutingError (No route matches [GET] "/teorema505"):
見覚えのないパスに何度も繰り返しリクエストが送られている。
I, [2024-08-19T03:08:58.256241 #1] INFO -- : [84ec38a4-ed61-430d-8c34-5dc3d84d85eb] Started GET "/ab2g" for 159.223.124.164 at 2024-08-19 03:08:58 +0000
E, [2024-08-19T03:08:58.256775 #1] ERROR -- : [84ec38a4-ed61-430d-8c34-5dc3d84d85eb]
[84ec38a4-ed61-430d-8c34-5dc3d84d85eb] ActionController::RoutingError (No route matches [GET] "/ab2g"):
[84ec38a4-ed61-430d-8c34-5dc3d84d85eb]
I, [2024-08-19T03:08:58.884147 #1] INFO -- : [ed7a091d-88d4-4cbd-a4da-cfe0d4cbc998] Started GET "/ab2h" for 159.223.124.164 at 2024-08-19 03:08:58 +0000
E, [2024-08-19T03:08:58.884590 #1] ERROR -- : [ed7a091d-88d4-4cbd-a4da-cfe0d4cbc998]
[ed7a091d-88d4-4cbd-a4da-cfe0d4cbc998] ActionController::RoutingError (No route matches [GET] "/ab2h"):
[ed7a091d-88d4-4cbd-a4da-cfe0d4cbc998]
I, [2024-08-19T03:08:59.538731 #1] INFO -- : [2be03d22-914f-4a9e-aed0-1d81f9676089] Started GET "/alive.php" for 159.223.124.164 at 2024-08-19 03:08:59 +0000
E, [2024-08-19T03:08:59.539386 #1] ERROR -- : [2be03d22-914f-4a9e-aed0-1d81f9676089]
[2be03d22-914f-4a9e-aed0-1d81f9676089] ActionController::RoutingError (No route matches [GET] "/alive.php"):
Chat GPTに聞いてみたところ、ボットによる自動スキャンや攻撃の試みである可能性が高いらしい。
GitHubのpublicからprivateに変更した。
fatal: could not read Username for 'https://github.com': No such device or address
GitHubからUsernameが読み込めなくなった。 PublicからPrivateにしたことで、シークレット環境変数の設定が全部リセットされてしまったか?
またタイムアウトエラーが出た(3回目) Apacheのタイムアウトの設定を両方書いた。