]> granicus.if.org Git - apache/blob - docs/manual/custom-error.xml.ko
Help doc writer to spot places where:
[apache] / docs / manual / custom-error.xml.ko
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) -->
5
6 <!--
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
13
14      http://www.apache.org/licenses/LICENSE-2.0
15
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.
21 -->
22
23 <manualpage metafile="custom-error.xml.meta">
24
25   <title>»ç¿ëÀÚÁ¤ÀÇ ¿À·ù ÀÀ´ä</title>
26
27   <summary>
28     <p>À¥¸¶½ºÅʹ ¿À·ù³ª ¹®Á¦°¡ ¹ß»ýÇßÀ»¶§ ¾ÆÆÄÄ¡ÀÇ ÀÀ´äÀ»
29     ¼³Á¤ÇÒ ¼ö ÀÖ´Ù.</p>
30
31     <p>¼­¹ö°¡ ¿À·ù³ª ¹®Á¦¸¦ ¹ß°ßÇßÀ»¶§ º¸³¾ »ç¿ëÀÚÁ¤ÀÇ ÀÀ´äÀ»
32     Á¤ÀÇÇÒ ¼ö ÀÖ´Ù.</p>
33
34     <p>½ºÅ©¸³Æ®°¡ Á×Àº °æ¿ì "500 Server Error" ÀÀ´ä ´ë½Å »ç¿ëÀÚ¿¡°Ô
35     ´õ Ä£±ÙÇÑ ¹®±¸¸¦ »ç¿ëÇϰųª ´Ù¸¥ (°°Àº »çÀÌÆ®³ª ¿ÜºÎ »çÀÌÆ®ÀÇ)
36     URL·Î ¸®´ÙÀÌ·º¼ÇÀ» ÇÒ ¼ö ÀÖ´Ù.</p>
37   </summary>
38
39   <section id="behavior">
40     <title>Çൿ</title>
41
42     <section>
43       <title>ÀÌÀü Çൿ</title>
44
45       <p>NCSA httpd 1.3Àº »ç¿ëÀÚ¿¡°Ô ¹«ÀǹÌÇÏ°í Áö·çÇÑ ¿À·ù¹®À»
46       º¸³Â´Ù. ¹®Á¦°¡ ¹ß»ýÇÑ ÀÌÀ¯¸¦ ·Î±×¿¡ ³²±æ ¼öµµ ¾ø¾ú´Ù.</p>
47     </section>
48
49     <section>
50       <title>»õ·Î¿î Çൿ</title>
51
52       <p>¼­¹ö´Â ´ÙÀ½°ú °°Àº ÀÏÀ» ÇÒ ¼ö ÀÖ´Ù:</p>
53
54       <ol>
55         <li>NCSAÀÇ °íÁ¤µÈ ¹®±¸ ´ë½Å ´Ù¸¥ ¹®±¸¸¦ º¸¿©Áְųª</li>
56
57         <li>°°Àº »çÀÌÆ®ÀÇ URL·Î ¸®´ÙÀÌ·º¼ÇÇϰųª</li>
58
59         <li>¿ÜºÎ »çÀÌÆ®ÀÇ URL·Î ¸®´ÙÀÌ·º¼ÇÇÑ´Ù.</li>
60       </ol>
61
62       <p>´Ù¸¥ »çÀÌÆ®ÀÇ URL·Î ¸®´ÙÀÌ·º¼ÇÇϴ °ÍÀÌ À¯¿ëÇÒ ¼ö ÀÖÁö¸¸,
63       ÀÌ °æ¿ì ¹®Á¦¸¦ ¼³¸íÇϰųª ·Î±×Çϴµ¥ ÇÊ¿äÇÑ Á¤º¸Áß ÀϺθ¸
64       Àü´ÞµÈ´Ù.</p>
65
66       <p>¿À·ù¿¡ ´ëÇÑ Á¤º¸¸¦ Àü´ÞÇϱâÀ§ÇØ ¾ÆÆÄÄ¡´Â CGI½ÄÀÇ »õ·Î¿î
67       È¯°æº¯¼ö¸¦ Á¤ÀÇÇÑ´Ù:</p>
68
69       <example>
70         REDIRECT_HTTP_ACCEPT=*/*, image/gif, image/x-xbitmap, 
71             image/jpeg<br />
72         REDIRECT_HTTP_USER_AGENT=Mozilla/1.1b2 (X11; I; HP-UX A.09.05 
73             9000/712)<br />
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
82       </example>
83
84       <p><code>REDIRECT_</code> Á¢µÎ»ç¿¡ ÁÖ¸ñÇ϶ó.</p>
85
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>
95     </section>
96   </section>
97
98   <section id="configuration">
99     <title>¼³Á¤</title>
100
101     <p><directive module="core">AllowOverride</directive>°¡
102     ÀûÀýÈ÷ ¼³Á¤µÇ¾ú´Ù¸é .htaccess ÆÄÀÏ¿¡¼­
103     <directive module="core">ErrorDocument</directive>¸¦ »ç¿ëÇÒ
104     ¼ö ÀÖ´Ù.</p>
105
106     <p>´ÙÀ½Àº ¿¹ÀÌ´Ù...</p>
107
108     <example>
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
114     </example>
115
116     <p>¹®¹ýÀº,</p>
117
118     <example>
119       ErrorDocument &lt;3-digit-code&gt; &lt;action&gt;
120     </example>
121
122     <p>°¡´ÉÇÑ actionÀº,</p>
123
124     <ol>
125       <li>Ãâ·ÂÇÒ ¹®±¸. µû¿ÈÇ¥ (")¸¦ ¹®±¸ ¾Õ¿¡ ºÙÀδÙ. µÚ¿¡ ³ª¿À´Â
126       µû¿ÈÇ¥´Â Ãâ·ÂµÈ´Ù. <em>ÁÖÀÇ: ¾Õ¿¡ ºÙÀº µû¿ÈÇ¥ (")´Â Ãâ·ÂµÇÁö
127       ¾Ê´Â´Ù.</em></li>
128
129       <li>¸®´ÙÀÌ·º¼ÇÇÒ ¿ÜºÎ URL.</li>
130
131       <li>¸®´ÙÀÌ·º¼ÇÇÒ ³»ºÎ URL.</li>
132     </ol>
133   </section>
134
135   <section id="custom">
136     <title>»ç¿ëÀÚÁ¤ÀÇ ¿À·ù ÀÀ´ä°ú ¸®´ÙÀÌ·º¼Ç</title>
137
138     <p>URL·Î ¸®´ÙÀÌ·º¼ÇÇϴ ¾ÆÆÄÄ¡ ÇൿÀº
139     ½ºÅ©¸³Æ®/server-include¿¡ È¯°æº¯¼ö¸¦ ´õ ³Ñ°ÜÁÖµµ·Ï º¯°æµÇ¾ú´Ù.</p>
140
141     <section>
142       <title>ÀÌÀü Çൿ</title>
143
144       <p>¸®´ÙÀÌ·º¼ÇµÇ´Â ½ºÅ©¸³Æ®¿¡ Ç¥ÁØ CGI º¯¼öµéÀÌ ³Ñ¾î°£´Ù.
145       ¾îµð¿¡¼­ ¸®´ÙÀÌ·º¼ÇÀÌ ÀϾ´ÂÁö ¾Ë ¼ö ¾ø´Ù.</p>
146     </section>
147
148     <section>
149       <title>»õ·Î¿î Çൿ</title>
150
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 ¸ðµÎ Á¢±Ù ·Î±×¿¡
160       ±â·ÏÇÒ ¼ö ÀÖ´Ù.</p>
161
162       <p>ErrorDocument°¡ °°Àº ¼­¹ö¿¡ Àִ CGI ½ºÅ©¸³Æ®·Î
163       ¸®´ÙÀÌ·º¼ÇÇÑ´Ù¸é, ½ºÅ©¸³Æ®´Â Å¬¶óÀ̾ðÆ®¿¡°Ô ¿À·ù »óȲÀ»
164       È®½ÇÈ÷ Àü´ÞÇϱâÀ§ÇØ Ãâ·Â¿¡ "<code>Status:</code>" Çì´õ
165       Çʵ带 Æ÷ÇÔÇؾߠÇÑ´Ù. ¿¹¸¦ µé¾î, Perl·Î ÀÛ¼ºÇÑ ErrorDocument
166       ½ºÅ©¸³Æ®´Â ´ÙÀ½°ú °°´Ù:</p>
167
168       <example>
169         ... <br />
170         print  "Content-type: text/html\n"; <br />
171         printf "Status: %s Condition Intercepted\n", $ENV{"REDIRECT_STATUS"}; <br />
172         ...
173       </example>
174
175       <p><code>404&nbsp;Not&nbsp;Found</code>¿Í °°Àº Æ¯Á¤ ¿À·ù
176       »óȲ¿¡ ´ëÇÑ ½ºÅ©¸³Æ®¶ó¸é, ´ë½Å <transnote>°íÁ¤µÈ</transnote>
177       Æ¯Á¤ »óÅÂÄÚµå¿Í ¿À·ù¹®À» »ç¿ëÇÒ ¼ö ÀÖ´Ù.</p>
178
179       <p>(Ŭ¶óÀ̾ðÆ®¿¡°Ô ¸®´ÙÀÌ·º¼ÇÀ» ¿äûÇϱâÀ§ÇØ) ÀÀ´ä¿¡
180       <code>Location:</code> Çì´õ¸¦ Æ÷ÇÔÇÑ´Ù¸é, ½ºÅ©¸³Æ®´Â
181       <em>¹Ýµå½Ã</em> (<code>302&nbsp;Found</code> °°Àº) ÀûÀýÇÑ
182       <code>Status:</code> Çì´õ¸¦ Ãâ·ÂÇؾߠÇÔÀ» ÁÖÀÇÇ϶ó. ±×·¸Áö¾ÊÀ¸¸é
183       <code>Location:</code> Çì´õ°¡ ¾Æ¹« ¼Ò¿ë¾ø°Ô µÉ ¼ö ÀÖ´Ù.</p>
184     </section>
185   </section>
186 </manualpage>