フォーラムへの返信
-
投稿者投稿
-
いつもお世話になっています。
WAFを切った後の7月7日から14日までの error.log をまとめました。
以下のURLにアップしています(IPアドレスやPHPファイル名など見られてはいけないものは「XXX」や「XXXXX」で伏せています)。
https://seiyu.ie-t.net/error_20250707-0714.log
error.log に書き込まれた内容で特に困っていることはありません、ただの報告と捉えて頂ければと思います。
500 Internal Server Error が出ずにWebサイトが正常に表示されました。
ご対応ありがとうございます。
ログの確認と設定調整、ありがとうございます。
前サーバーではWAFを切っており、新サーバーでもWAFを切ろうと .htaccess に以下のように追記したのですが、
500 Internal Server Error になりました。
—
# Disable WAF – 2025/06/29
<IfModule mod_security2.c>
SecRuleRemoveById *
</IfModule>—
error.log には「(略).htaccess: SecRuleRemoveById not allowed here」と記載されていました。
何かご存知でしたら教えて頂けると幸いです。
いつもお世話になっています。
サーバー切り替え後から error.log に今まで記載されなかった内容が記載され始めました。
ほとんどは「ModSecurity: Rule」関係なので .htaccess に検知除外を追加すれば解決すると思われますが、
それ以外にも「ModSecurity: Warning」や「AH01079」「AH01067」が発生していました。
ログを以下のURLに配置しています(IPアドレスやPHPファイル名は「XXX」で伏せて、重複行は削除しています)。
https://seiyu.ie-t.net/error_20250629.log
現在、Webサイトには問題が起きていませんので無視してよい内容だろうとは思いますが念の為にお知らせします。
お時間がありましたらご一読して頂けると幸いです。
> ちょっと諸々解せない点はありますが、hostsファイルの反映不良やブラウザキャッシュの可能性も捨てきれない気がします。
> 今私の方で同サイトURLを/testなどとすると黒背景に緑文字の404ページが表示されました。
独自ページの404ページが表示されました。
hostsファイルの反映不良やブラウザキャッシュだったようです、失礼しました。現時点の /log/error.log の内容は以下の通りです(IPアドレスなどXXXで伏せています)。
[Wed May 21 15:40:13.748268 2025] [autoindex:error] [pid 1172238:tid 1172309] [client XXX.XXX.XXX.XXX:53255] AH01276: Cannot serve directory /var/www/clients/clientXXX/webXXX/web/log/: No matching DirectoryIndex (index.html,index.htm,index.shtml,index.php,index.cgi,standard_index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Wed May 21 13:36:47.007215 2025] [proxy_fcgi:error] [pid 809420:tid 809512] [client XXX.XXX.XXX.XXX:52820] AH01071: Got error ‘Primary script unknown’
[Wed May 21 13:36:26.206596 2025] [proxy_fcgi:error] [pid 809420:tid 809489] [client XXX.XXX.XXX.XXX:52820] AH01071: Got error ‘Primary script unknown’
[Wed May 21 13:34:20.408346 2025] [proxy_fcgi:error] [pid 809420:tid 809520] [client XXX.XXX.XXX.XXX:52820] AH01071: Got error ‘Primary script unknown’
[Wed May 21 13:32:41.718462 2025] [authz_core:error] [pid 809420:tid 809521] [client XXX.XXX.XXX.XXX:52692] AH01630: client denied by server configuration: /var/www/clients/clientXXX/webXXX/web/.htaccess
[Wed May 21 13:32:20.674775 2025] [autoindex:error] [pid 809420:tid 809513] [client XXX.XXX.XXX.XXX:52691] AH01276: Cannot serve directory /var/www/clients/clientXXX/webXXX/web/log/: No matching DirectoryIndex (index.html,index.htm,index.shtml,index.php,index.cgi,standard_index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Wed May 21 13:32:11.736521 2025] [proxy_fcgi:error] [pid 809420:tid 809493] [client XXX.XXX.XXX.XXX:52691] AH01071: Got error ‘Primary script unknown’
[Wed May 21 13:32:05.159465 2025] [proxy_fcgi:error] [pid 809420:tid 809522] [client XXX.XXX.XXX.XXX:52691] AH01071: Got error ‘Primary script unknown’
[Wed May 21 13:29:46.371911 2025] [proxy_fcgi:error] [pid 809420:tid 809522] (70007)The timeout specified has expired: [client XXX.XXX.XXX.XXX:52406] AH01075: Error dispatching request to : (polling)
[Wed May 21 13:28:49.676913 2025] [proxy_fcgi:error] [pid 809420:tid 809520] [client XXX.XXX.XXX.XXX:52484] AH01071: Got error ‘Primary script unknown’
[Wed May 21 13:18:56.073273 2025] [autoindex:error] [pid 809420:tid 809522] [client XXX.XXX.XXX.XXX:50897] AH01276: Cannot serve directory /var/www/clients/clientXXX/webXXX/web/log/: No matching DirectoryIndex (index.html,index.htm,index.shtml,index.php,index.cgi,standard_index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Wed May 21 13:16:42.239509 2025] [proxy_fcgi:error] [pid 809420:tid 809494] [client XXX.XXX.XXX.XXX:50782] AH01071: Got error ‘Primary script unknown’
[Wed May 21 13:16:30.579172 2025] [proxy_fcgi:error] [pid 809420:tid 809512] [client XXX.XXX.XXX.XXX:50782] AH01071: Got error ‘Primary script unknown’ -
投稿者投稿