1 <?xml version="1.0" encoding="EUC-KR" ?>
2 <!DOCTYPE manualpage SYSTEM "./style/manualpage.dtd">
3 <?xml-stylesheet type="text/xsl" href="./style/manual.ko.xsl"?>
4 <!-- English Revision: 420990:1741842 (outdated) -->
7 Licensed to the Apache Software Foundation (ASF) under one or more
8 contributor license agreements. See the NOTICE file distributed with
9 this work for additional information regarding copyright ownership.
10 The ASF licenses this file to You under the Apache License, Version 2.0
11 (the "License"); you may not use this file except in compliance with
12 the License. You may obtain a copy of the License at
14 http://www.apache.org/licenses/LICENSE-2.0
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
23 <manualpage metafile="custom-error.xml.meta">
25 <title>»ç¿ëÀÚÁ¤ÀÇ ¿À·ù ÀÀ´ä</title>
28 <p>À¥¸¶½ºÅÍ´Â ¿À·ù³ª ¹®Á¦°¡ ¹ß»ýÇßÀ»¶§ ¾ÆÆÄÄ¡ÀÇ ÀÀ´äÀ»
31 <p>¼¹ö°¡ ¿À·ù³ª ¹®Á¦¸¦ ¹ß°ßÇßÀ»¶§ º¸³¾ »ç¿ëÀÚÁ¤ÀÇ ÀÀ´äÀ»
34 <p>½ºÅ©¸³Æ®°¡ Á×Àº °æ¿ì "500 Server Error" ÀÀ´ä ´ë½Å »ç¿ëÀÚ¿¡°Ô
35 ´õ Ä£±ÙÇÑ ¹®±¸¸¦ »ç¿ëÇϰųª ´Ù¸¥ (°°Àº »çÀÌÆ®³ª ¿ÜºÎ »çÀÌÆ®ÀÇ)
36 URL·Î ¸®´ÙÀÌ·º¼ÇÀ» ÇÒ ¼ö ÀÖ´Ù.</p>
39 <section id="behavior">
43 <title>ÀÌÀü Çൿ</title>
45 <p>NCSA httpd 1.3Àº »ç¿ëÀÚ¿¡°Ô ¹«ÀǹÌÇÏ°í Áö·çÇÑ ¿À·ù¹®À»
46 º¸³Â´Ù. ¹®Á¦°¡ ¹ß»ýÇÑ ÀÌÀ¯¸¦ ·Î±×¿¡ ³²±æ ¼öµµ ¾ø¾ú´Ù.</p>
50 <title>»õ·Î¿î Çൿ</title>
52 <p>¼¹ö´Â ´ÙÀ½°ú °°Àº ÀÏÀ» ÇÒ ¼ö ÀÖ´Ù:</p>
55 <li>NCSAÀÇ °íÁ¤µÈ ¹®±¸ ´ë½Å ´Ù¸¥ ¹®±¸¸¦ º¸¿©Áְųª</li>
57 <li>°°Àº »çÀÌÆ®ÀÇ URL·Î ¸®´ÙÀÌ·º¼ÇÇϰųª</li>
59 <li>¿ÜºÎ »çÀÌÆ®ÀÇ URL·Î ¸®´ÙÀÌ·º¼ÇÇÑ´Ù.</li>
62 <p>´Ù¸¥ »çÀÌÆ®ÀÇ URL·Î ¸®´ÙÀÌ·º¼ÇÇÏ´Â °ÍÀÌ À¯¿ëÇÒ ¼ö ÀÖÁö¸¸,
63 ÀÌ °æ¿ì ¹®Á¦¸¦ ¼³¸íÇϰųª ·Î±×Çϴµ¥ ÇÊ¿äÇÑ Á¤º¸Áß ÀϺθ¸
66 <p>¿À·ù¿¡ ´ëÇÑ Á¤º¸¸¦ Àü´ÞÇϱâÀ§ÇØ ¾ÆÆÄÄ¡´Â CGI½ÄÀÇ »õ·Î¿î
67 ȯ°æº¯¼ö¸¦ Á¤ÀÇÇÑ´Ù:</p>
70 REDIRECT_HTTP_ACCEPT=*/*, image/gif, image/x-xbitmap,
72 REDIRECT_HTTP_USER_AGENT=Mozilla/1.1b2 (X11; I; HP-UX A.09.05
74 REDIRECT_PATH=.:/bin:/usr/local/bin:/etc<br />
75 REDIRECT_QUERY_STRING=<br />
76 REDIRECT_REMOTE_ADDR=121.345.78.123<br />
77 REDIRECT_REMOTE_HOST=ooh.ahhh.com<br />
78 REDIRECT_SERVER_NAME=crash.bang.edu<br />
79 REDIRECT_SERVER_PORT=80<br />
80 REDIRECT_SERVER_SOFTWARE=Apache/0.8.15<br />
81 REDIRECT_URL=/cgi-bin/buggy.pl
84 <p><code>REDIRECT_</code> Á¢µÎ»ç¿¡ ÁÖ¸ñÇ϶ó.</p>
86 <p>ÃÖ¼ÒÇÑ <code>REDIRECT_URL</code>°ú
87 <code>REDIRECT_QUERY_STRING</code>Àº (cgi-script³ª
88 cgi-includeÀÏ) »õ URL·Î ³Ñ°ÜÁø´Ù. ´Ù¸¥ º¯¼ö´Â ¿À·ù°¡
89 ¹ß»ýÇϱâ ÀÌÀü¿¡ <transnote>À̸§¿¡¼ <code>REDIRECT_</code>¸¦
90 »« ȯ°æº¯¼ö°¡</transnote> Á¸ÀçÇÑ °æ¿ì¿¡¸¸ ÀÖ´Ù.
91 <directive module="core">ErrorDocument</directive>°¡
92 <em>¿ÜºÎ·Î</em> (°°Àº ¼¹ö¶óµµ <code>http:</code>¿Í
93 °°Àº ½ºÅ´(scheme)À¸·Î ½ÃÀÛÇÑ´Ù¸é) ¸®´ÙÀÌ·º¼ÇÇÑ´Ù¸é
94 ÀÌÁß ¾î¶² °Íµµ ¼³Á¤µÇÁö <strong>¾Ê´Â´Ù</strong>.</p>
98 <section id="configuration">
101 <p><directive module="core">AllowOverride</directive>°¡
102 ÀûÀýÈ÷ ¼³Á¤µÇ¾ú´Ù¸é .htaccess ÆÄÀÏ¿¡¼
103 <directive module="core">ErrorDocument</directive>¸¦ »ç¿ëÇÒ
106 <p>´ÙÀ½Àº ¿¹ÀÌ´Ù...</p>
109 ErrorDocument 500 /cgi-bin/crash-recover <br />
110 ErrorDocument 500 "Sorry, our script crashed. Oh dear" <br />
111 ErrorDocument 500 http://xxx/ <br />
112 ErrorDocument 404 /Lame_excuses/not_found.html <br />
113 ErrorDocument 401 /Subscription/how_to_subscribe.html
119 ErrorDocument <3-digit-code> <action>
122 <p>°¡´ÉÇÑ actionÀº,</p>
125 <li>Ãâ·ÂÇÒ ¹®±¸. µû¿ÈÇ¥ (")¸¦ ¹®±¸ ¾Õ¿¡ ºÙÀδÙ. µÚ¿¡ ³ª¿À´Â
126 µû¿ÈÇ¥´Â Ãâ·ÂµÈ´Ù. <em>ÁÖÀÇ: ¾Õ¿¡ ºÙÀº µû¿ÈÇ¥ (")´Â Ãâ·ÂµÇÁö
129 <li>¸®´ÙÀÌ·º¼ÇÇÒ ¿ÜºÎ URL.</li>
131 <li>¸®´ÙÀÌ·º¼ÇÇÒ ³»ºÎ URL.</li>
135 <section id="custom">
136 <title>»ç¿ëÀÚÁ¤ÀÇ ¿À·ù ÀÀ´ä°ú ¸®´ÙÀÌ·º¼Ç</title>
138 <p>URL·Î ¸®´ÙÀÌ·º¼ÇÇÏ´Â ¾ÆÆÄÄ¡ ÇൿÀº
139 ½ºÅ©¸³Æ®/server-include¿¡ ȯ°æº¯¼ö¸¦ ´õ ³Ñ°ÜÁÖµµ·Ï º¯°æµÇ¾ú´Ù.</p>
142 <title>ÀÌÀü Çൿ</title>
144 <p>¸®´ÙÀÌ·º¼ÇµÇ´Â ½ºÅ©¸³Æ®¿¡ Ç¥ÁØ CGI º¯¼öµéÀÌ ³Ñ¾î°£´Ù.
145 ¾îµð¿¡¼ ¸®´ÙÀÌ·º¼ÇÀÌ ÀϾ´ÂÁö ¾Ë ¼ö ¾ø´Ù.</p>
149 <title>»õ·Î¿î Çൿ</title>
151 <p>¸®´ÙÀÌ·º¼ÇµÈ ½ºÅ©¸³Æ®´Â »õ·Î¿î ȯ°æº¯¼öµéÀ» »ç¿ëÇÒ
152 ¼ö ÀÖ´Ù. ¸ðµÎ ¾Õ¿¡ <code>REDIRECT_</code>°¡ ºÙ¾îÀÖ´Ù.
153 <code>REDIRECT_</code> ȯ°æº¯¼ö´Â ¿ø·¡ CGI ȯ°æº¯¼ö¸í
154 ¾Õ¿¡ <code>REDIRECT_</code>¸¦ ºÙ¿©¼ ¸¸µç´Ù. <em>¿¹¸¦
155 µé¾î</em>, <code>HTTP_USER_AGENT</code>´Â
156 <code>REDIRECT_HTTP_USER_AGENT</code>°¡ µÇ¾ú´Ù. ÀÌ·± º¯¼ö¿¡
157 Ãß°¡·Î ½ºÅ©¸³Æ®°¡ ¿ø·¡ URLÀ» ¾Ëµµ·Ï ¾ÆÆÄÄ¡´Â
158 <code>REDIRECT_URL</code>°ú <code>REDIRECT_STATUS</code>¸¦
159 Á¤ÀÇÇÑ´Ù. ¿ø·¡ URL°ú ¸®´ÙÀÌ·º¼ÇµÈ URL ¸ðµÎ Á¢±Ù ·Î±×¿¡
162 <p>ErrorDocument°¡ °°Àº ¼¹ö¿¡ ÀÖ´Â CGI ½ºÅ©¸³Æ®·Î
163 ¸®´ÙÀÌ·º¼ÇÇÑ´Ù¸é, ½ºÅ©¸³Æ®´Â Ŭ¶óÀ̾ðÆ®¿¡°Ô ¿À·ù »óȲÀ»
164 È®½ÇÈ÷ Àü´ÞÇϱâÀ§ÇØ Ãâ·Â¿¡ "<code>Status:</code>" Çì´õ
165 Çʵ带 Æ÷ÇÔÇØ¾ß ÇÑ´Ù. ¿¹¸¦ µé¾î, Perl·Î ÀÛ¼ºÇÑ ErrorDocument
166 ½ºÅ©¸³Æ®´Â ´ÙÀ½°ú °°´Ù:</p>
170 print "Content-type: text/html\n"; <br />
171 printf "Status: %s Condition Intercepted\n", $ENV{"REDIRECT_STATUS"}; <br />
175 <p><code>404 Not Found</code>¿Í °°Àº ƯÁ¤ ¿À·ù
176 »óȲ¿¡ ´ëÇÑ ½ºÅ©¸³Æ®¶ó¸é, ´ë½Å <transnote>°íÁ¤µÈ</transnote>
177 ƯÁ¤ »óÅÂÄÚµå¿Í ¿À·ù¹®À» »ç¿ëÇÒ ¼ö ÀÖ´Ù.</p>
179 <p>(Ŭ¶óÀ̾ðÆ®¿¡°Ô ¸®´ÙÀÌ·º¼ÇÀ» ¿äûÇϱâÀ§ÇØ) ÀÀ´ä¿¡
180 <code>Location:</code> Çì´õ¸¦ Æ÷ÇÔÇÑ´Ù¸é, ½ºÅ©¸³Æ®´Â
181 <em>¹Ýµå½Ã</em> (<code>302 Found</code> °°Àº) ÀûÀýÇÑ
182 <code>Status:</code> Çì´õ¸¦ Ãâ·ÂÇØ¾ß ÇÔÀ» ÁÖÀÇÇ϶ó. ±×·¸Áö¾ÊÀ¸¸é
183 <code>Location:</code> Çì´õ°¡ ¾Æ¹« ¼Ò¿ë¾ø°Ô µÉ ¼ö ÀÖ´Ù.</p>