.
: http://itpm.msu.su/manual/ja/custom-error.html
: Sat Feb 5 01:50:17 2005 : Mon Oct 1 21:38:45 2012 : IBM-866 : |
Apache HTTP ? 2.0
쒃丈 Apache 侫?ᰭ??
?䃬侫? 䯀
侮쮡 "500 Server Error" ?侬侫?⻱ URL (?䪁?) ?丆퇵
NCSA httpd 1.3 ⦊䯈/? 乱 ?䃦????
?
URL 乱?举 乄?並/? Ż??並
? Apache 乃 CGI 仇?? :
REDIRECT_HTTP_ACCEPT=*/*, image/gif,
image/x-xbitmap, image/jpeg
REDIRECT_HTTP_USER_AGENT=Mozilla/1.1b2 (X11; I; HP-UX
A.09.05 9000/712)
REDIRECT_PATH=.:/bin:/usr/local/bin:/etc
REDIRECT_QUERY_STRING=
REDIRECT_REMOTE_ADDR=121.345.78.123
REDIRECT_REMOTE_HOST=ooh.ahhh.com
REDIRECT_SERVER_NAME=crash.bang.edu
REDIRECT_SERVER_PORT=80
REDIRECT_SERVER_SOFTWARE=Apache/0.8.15
REDIRECT_URL=/cgi-bin/buggy.pl
严 REDIRECT_
丆
REDIRECT_URL
REDIRECT_QUERY_STRING
乃 URL (CGI
CGI ?䫒) 上
侻?丈䃬䑈
侄 ErrorDocument
?
(http:
仈译?)
?
AllowOverride
섂丄
.htaccess ErrorDocument
?
侾??
ErrorDocument 500 /cgi-bin/crash-recover
ErrorDocument 500 "Sorry, our script crashed. Oh dear"
ErrorDocument 500 http://xxx/
ErrorDocument 404 /Lame_excuses/not_found.html
ErrorDocument 401 /Subscription/how_to_subscribe.html
ErrorDocument <3-digit-code> <action>
action ()
/SSI 一侇?제 URL 丈 Apache 侯컶
乥 CGI ?? 侬Ż?乀??
䃄쨫
?侇??ョ件?
REDIRECT_
䰨
REDIRECT_
䰨?丈
CGI ?侯 REDIRECT_
?䯡
HTTP_USER_AGENT
REDIRECT_HTTP_USER_AGENT
侃件?丒Apache
嫦??
REDIRECT_URL
REDIRECT_STATUS
?书 URL URL
侾?
ErrorDocument CGI ?
?侬??
?䰁上 "Status:"
?ErrorDocument Perl
乐??
...
print "Content-type: text/html\n";
printf "Status: %s Condition Intercepted\n", $ENV{"REDIRECT_STATUS"};
...
404 Not Found
???丨
丯?