トップ 差分 一覧 Farm ソース 検索 ヘルプ PDF RSS ログイン

ErrorDocument

ErrorDocument

Apacheの設定用ディレクティブで、サーバでエラーが発生したときの応答メッセージを単純な文字列、ファイル、外部サーバのファイルに指定する。

httpd.confには次のように記されている(初期状態ではコメント)。

ErrorDocument 500 "The server made a boo boo."
ErrorDocument 404 /missing.html
ErrorDocument 404 "/cgi-bin/missing_handler.pl"
ErrorDocument 402 http://www.example.com/subscription_info.html