Äîêóìåíò âçÿò èç êýøà ïîèñêîâîé ìàøèíû. Àäðåñ
îðèãèíàëüíîãî äîêóìåíòà
: http://www.arcetri.astro.it/manual/ko/custom-error.html
Äàòà èçìåíåíèÿ: Mon Jan 21 19:44:30 2013 Äàòà èíäåêñèðîâàíèÿ: Fri Feb 28 01:03:38 2014 Êîäèðîâêà: ISO8859-5 Ïîèñêîâûå ñëîâà: ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï ð ï |
Apache HTTP Server Version 2.2
Ð?ÈÆÍÊÕÝÄÒ ÏÐÇ?Ã? É?Ñ?ÀÅ ÉïË×ïÐËÆ? ÎÖÖÔÔÅÐ× ÐÐÄôÐË ÌÃÑ?×â Ì? ÐæÄé.
Ì-É?ÀÅ ÏÐÇ?Ã? É?Ñ?È? ÉïÀï×ïÐËÆ? ÊÈÃÎ Ë÷ÏûÐêÑ?Ð× ÐÐÄôÐË Ñ?Ð××â Ì? ÐæÄé.
ÍÊÕ?ÈÃÖ?ÀÅ ÑçÐÊ ÀöÏü "500 Server Error" ÐÐÄô ÄûÍÕ Ë÷ÏûÐêÏÅÀä Ä? Ô?Áé×á É?ÁÈÈ? Ë÷Ïû×ßÀÕÃ? ÄéÈ? (ÀÀÐÊ Ë÷ÐÜÖ?Ã? ÏìÊÞ Ë÷ÐÜÖ?Ð×) URLÇÞ È?ÄéÐÜÇÊÌ×ÐË ×â Ì? ÐæÄé.
NCSA httpd 1.3ÐÊ Ë÷ÏûÐêÏÅÀä É?Ð×ÉÜ×ßÀý Ñ?Ç÷×á ÏÐÇ?É?ÐË ÊÈÃÒÄé. É?Ñ?ÀÅ ÉïË×á ÐÜÐ?È? ÇÞÁçÏÅ ÃÂÁö Ì?ÅÅ Î?Î?Äé.
Ì-É?ÄÒ ÄéÐÍÀ? ÀÀÐÊ ÐßÐË ×â Ì? ÐæÄé:
ÄéÈ? Ë÷ÐÜÖ?Ð× URLÇÞ È?ÄéÐÜÇÊÌ××ßÄÒ ÀÝÐÜ Ð?Ïû×â Ì? ÐæÑ?ÈÈ, ÐÜ ÀöÏü É?Ñ?È? ÌÃÈý×ßÀÕÃ? ÇÞÁç×ßÄÒÅ? ×ÚÏô×á Ñ?ÊÈÑï ÐßÊÞÈÈ Ð?ÄîÅØÄé.
ÏÐÇ?ÏÅ Äû×á Ñ?ÊÈÈ? Ð?Äî×ßÁòÐ?×è ÎÖÖÔÔÅÄÒ 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
ÐÊ (cgi-scriptÃ?
cgi-includeÐß) Ë? URLÇÞ ÃáÀìÑ?Äé. ÄéÈ? Ê?Ì?ÄÒ ÏÐÇ?ÀÅ
ÉïË×ßÁò ÐÜÐ?ÏÅ (Ï?Ñæ; ÐÜÈ?ÏÅÌ- REDIRECT_
È?
Ë? Ø?ÀöÊ?Ì?ÀÅ) ÑÈÐ÷×á ÀöÏüÏÅÈÈ ÐæÄé.
ErrorDocument
ÀÅ
ÏìÊÞÇÞ (ÀÀÐÊ Ì-É?Æ?ÅÅ http:
ÏÝ
ÀÀÐÊ ÍÊÕÄ(scheme)ÐÈÇÞ ÍÓÐë×áÄéÈù) È?ÄéÐÜÇÊÌ××áÄéÈù
ÐÜÑï ÎþÆ ÀÝÅÅ ÌÃÑ?Å×Ñ? ÎÚÄÒÄé.
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ÐÊ,
URLÇÞ È?ÄéÐÜÇÊÌ××ßÄÒ ÎÖÖÔÔÅ ×ðÅÏÐÊ ÍÊÕ?ÈÃÖ?/server-includeÏÅ Ø?ÀöÊ?Ì?È? Ä? ÃáÀìÑæÅÅÇß Ê?ÀöÅ×Î?Äé.
È?ÄéÐÜÇÊÌ×Å×ÄÒ ÍÊÕ?ÈÃÖ?ÏÅ ×?Ñè CGI Ê?Ì?ÅùÐÜ ÃáÎþÀ?Äé. ÎþÅ?ÏÅÌ- È?ÄéÐÜÇÊÌ×ÐÜ ÐßÎþÃÅÄÒÑ? ÎÛ Ì? Î?Äé.
È?ÄéÐÜÇÊÌ×ÅØ ÍÊÕ?ÈÃÖ?ÄÒ Ë?ÇÞÏþ Ø?ÀöÊ?Ì?ÅùÐË Ë÷Ïû×â
Ì? ÐæÄé. È?ÅÞ ÎåÏÅ REDIRECT_
ÀÅ ÊéÎþÐæÄé.
REDIRECT_
Ø?ÀöÊ?Ì?ÄÒ Ï?ÇÅ CGI Ø?ÀöÊ?Ì?Èý
ÎåÏÅ REDIRECT_
È? ÊéÏ?Ì- ÈÈÅ÷Äé. ÏÉÈ?
ÅùÎþ, HTTP_USER_AGENT
ÄÒ
REDIRECT_HTTP_USER_AGENT
ÀÅ Å×Î?Äé. ÐÜÇÁ Ê?Ì?ÏÅ
ÓïÀÅÇÞ ÍÊÕ?ÈÃÖ?ÀÅ Ï?ÇÅ URLÐË ÎÛÅÅÇß ÎÖÖÔÔÅÄÒ
REDIRECT_URL
À? REDIRECT_STATUS
È?
Ñ?Ð××áÄé. Ï?ÇÅ URLÀ? È?ÄéÐÜÇÊÌ×ÅØ URL È?ÅÞ Ñ?Áé ÇÞÁçÏÅ
ÁòÇß×â Ì? ÐæÄé.
ErrorDocumentÀÅ ÀÀÐÊ Ì-É?ÏÅ ÐæÄÒ CGI ÍÊÕ?ÈÃÖ?ÇÞ
È?ÄéÐÜÇÊÌ××áÄéÈù, ÍÊÕ?ÈÃÖ?ÄÒ Õ?Æ?ÐÜÎ?Ö?ÏÅÀä ÏÐÇ? Ë?ØÂÐË
Ø?Í×Ø? Ð?Äî×ßÁòÐ?×è ÓòÇÒÏÅ "Status:
" ×üÄ?
×ÚÅõÈ? Ö?×ä×èÎï ×áÄé. ÏÉÈ? ÅùÎþ, PerlÇÞ ÐëÌÊ×á ErrorDocument
ÍÊÕ?ÈÃÖ?ÄÒ ÄéÐÍÀ? ÀÀÄé:
...
print "Content-type: text/html\n";
printf "Status: %s Condition Intercepted\n", $ENV{"REDIRECT_STATUS"};
...
404 Not Found
ÏÝ ÀÀÐÊ Ö?Ñ? ÏÐÇ?
Ë?ØÂÏÅ Äû×á ÍÊÕ?ÈÃÖ?Æ?Èù, ÄûÍÕ (Ï?Ñæ; ÀýÑ?ÅØ)
Ö?Ñ? Ë?ÕÒÔêÅõÏÝ ÏÐÇ?É?ÐË Ë÷Ïû×â Ì? ÐæÄé.
(Õ?Æ?ÐÜÎ?Ö?ÏÅÀä È?ÄéÐÜÇÊÌ×ÐË ÏôÓË×ßÁòÐ?×è) ÐÐÄôÏÅ
Location:
×üÄ?È? Ö?×ä×áÄéÈù, ÍÊÕ?ÈÃÖ?ÄÒ
ÉíÅõÍÓ (302 Found
ÀÀÐÊ) Ð?Ð×á
Status:
×üÄ?È? ÓòÇÒ×èÎï ×äÐË ÑæÐ××ßÆ?. ÁçÇÈÑ?ÎÚÐÈÈù
Location:
×üÄ?ÀÅ ÎÖÉ? ÌâÏûÎ?Àä ÅÙ Ì? ÐæÄé.