編輯 httpd.conf

檔案可能位置:x:\AppServ\Apache2.2\conf\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

 

可以改成

ErrorDocument 500 "sorry..."

ErrorDocument 404 /error.htm

ErrorDocument 403 "sorry..."

ErrorDocument 402 /error.htm

 

在根目錄記得新增一個檔案 檔名為 error.htm

文件內容簡單打入 sorry...即可

arrow
arrow
    全站熱搜

    J 的閒聊 發表在 痞客邦 留言(0) 人氣()