- このトピックには2件の返信、2人の参加者があり、最後に
seiyu.kyouen.kensakuにより13時間、 26分前に更新されました。
- 投稿者投稿
- 2025 年 5 月 21 日 13:46 #1423
新サーバー(VPS)に対して自サイトを用いてデバッグ作業を行いました。
その結果、特定のページにアクセスすると「ERROR 404 – Not Found!」にリダイレクトされる現象が発生していました。
リダイレクト先 https://ie-t.net/error/404.htmlしかし、一晩おいて再度確認したところ上記現象は発生しなくなっていました。
ただ、存在しないページにアクセスした際に自サイトでは.htaccessで独自の404ページを表示するように設定しているのですが、
それが効いておらず「File not found.」とだけ記載されたページが表示されます。
403 Forbiddenも独自ページを表示するように.htaccessで設定していますが、こちらは正常に表示されます。/log/error.log を確認したところPHPエラー(WarningやNoticeを含む)は発生していませんでした。
現行サイトと比べてPHPやDBの速度が早くなったかまでは確認(体感)出来ませんでした。
デバッグ作業で分かったことは以上です。
- 2025 年 5 月 21 日 15:14 #1424
ちらみ
キーマスターご報告ありがとうございます。
ちょっと諸々解せない点はありますが、hostsファイルの反映不良やブラウザキャッシュの可能性も捨てきれない気がします。
今私の方で同サイトURLを/testなどとすると黒背景に緑文字の404ページが表示されました。
速度については、実は現行サーバ側でもPHPのOPCacheを有効にしたので2週間前よりも少し速くなっています。
これにより違いが良く分からなかった可能性もありますが、少なくともベンチマークだと速くはなっているのでそこは心配は不要でございます。他にも気づいた点があれば都度教えて下さい。
- 2025 年 5 月 21 日 15:49 #1425
> ちょっと諸々解せない点はありますが、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’
- 投稿者投稿
- このトピックに返信するにはログインが必要です。