. : 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
<-
Apache > HTTP > ?? > ? 2.0

?

Available Languages:  en  |  es  |  ja  |  ko 

쒃丈 Apache 侫?ᰭ??

?䃬侫? 䯀

侮쮡 "500 Server Error" ?侬侫?⻱ URL (?䪁?) ?丆퇵

top

NCSA httpd 1.3 ⦊䯈/? 乱 ?䃦????

  1. NCSA 侈 ?
  2. URL
  3. ? URL

?

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: 仈译?) ?

top

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 ()

  1. 乐 (") ? 侦丈쒃򥭮 : (") 乥?
  2. 嫄侁? URL
  3. 嫄 URL
top

?

/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 ???丨 丯?

Available Languages:  en  |  es  |  ja  |  ko