1<?xml version="1.0" encoding="EUC-KR"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head><!--
4        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
5              This file is generated from xml source: DO NOT EDIT
6        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
7      -->
8<title>��������� ���� ���� - Apache HTTP Server</title>
9<link href="/style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
10<link href="/style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
11<link href="/style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="/style/css/prettify.css" />
12<script src="/style/scripts/prettify.min.js" type="text/javascript">
13</script>
14
15<link href="/images/favicon.ico" rel="shortcut icon" /></head>
16<body id="manual-page"><div id="page-header">
17<p class="menu"><a href="/mod/">���</a> | <a href="/mod/directives.html">���þ��</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="/glossary.html">���</a> | <a href="/sitemap.html">����Ʈ��</a></p>
18<p class="apache">Apache HTTP Server Version 2.4</p>
19<img alt="" src="/images/feather.gif" /></div>
20<div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="/images/left.gif" /></a></div>
21<div id="path">
22<a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP Server</a> &gt; <a href="http://httpd.apache.org/docs/">Documentation</a> &gt; <a href="./">Version 2.4</a></div><div id="page-content"><div id="preamble"><h1>��������� ���� ����</h1>
23<div class="toplang">
24<p><span>������ ���: </span><a href="/en/custom-error.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
25<a href="/es/custom-error.html" hreflang="es" rel="alternate" title="Espa&#241;ol">&nbsp;es&nbsp;</a> |
26<a href="/fr/custom-error.html" hreflang="fr" rel="alternate" title="Fran&#231;ais">&nbsp;fr&nbsp;</a> |
27<a href="/ja/custom-error.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
28<a href="/ko/custom-error.html" title="Korean">&nbsp;ko&nbsp;</a> |
29<a href="/tr/custom-error.html" hreflang="tr" rel="alternate" title="T&#252;rk&#231;e">&nbsp;tr&nbsp;</a></p>
30</div>
31<div class="outofdate">�� ������ �ֽ��� ���� �ƴմϴ�.
32            �ֱٿ� ����� ������ ���� ������ ����ϼ���.</div>
33
34    <p>�������ʹ� ���� ������ �߻������� ����ġ�� ������
35    ������ �� �ִ�.</p>
36
37    <p>������ ���� ������ �߰������� ���� ��������� ������
38    ������ �� �ִ�.</p>
39
40    <p>��ũ��Ʈ�� ���� ��� "500 Server Error" ���� ��� ����ڿ���
41    �� ģ���� ������ ����ϰų� �ٸ� (���� ����Ʈ�� �ܺ� ����Ʈ��)
42    URL�� �����̷����� �� �� �ִ�.</p>
43  </div>
44<div id="quickview"><ul id="toc"><li><img alt="" src="/images/down.gif" /> <a href="#behavior">�ൿ</a></li>
45<li><img alt="" src="/images/down.gif" /> <a href="#configuration">����</a></li>
46<li><img alt="" src="/images/down.gif" /> <a href="#custom">��������� ���� ����� �����̷���</a></li>
47</ul><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div>
48<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
49<div class="section">
50<h2><a name="behavior" id="behavior">�ൿ</a></h2>
51    
52
53    <h3>���� �ൿ</h3>
54      
55
56      <p>NCSA httpd 1.3�� ����ڿ��� ���ǹ��ϰ� ������ ������
57      ���´�. ������ �߻��� ������ �α׿� ���� ���� ����.</p>
58    
59
60    <h3>���ο� �ൿ</h3>
61      
62
63      <p>������ ������ ���� ���� �� �� �ִ�:</p>
64
65      <ol>
66        <li>NCSA�� ������ ���� ��� �ٸ� ������ �����ְų�</li>
67
68        <li>���� ����Ʈ�� URL�� �����̷����ϰų�</li>
69
70        <li>�ܺ� ����Ʈ�� URL�� �����̷����Ѵ�.</li>
71      </ol>
72
73      <p>�ٸ� ����Ʈ�� URL�� �����̷����ϴ� ���� ������ �� ������,
74      �� ��� ������ �����ϰų� �α��ϴµ� �ʿ��� ������ �Ϻθ�
75      ��޵ȴ�.</p>
76
77      <p>���� ���� ������ ����ϱ����� ����ġ�� CGI���� ���ο�
78      ȯ�溯���� �����Ѵ�:</p>
79
80      <div class="example"><p><code>
81        REDIRECT_HTTP_ACCEPT=*/*, image/gif, image/x-xbitmap, 
82            image/jpeg<br />
83        REDIRECT_HTTP_USER_AGENT=Mozilla/1.1b2 (X11; I; HP-UX A.09.05 
84            9000/712)<br />
85        REDIRECT_PATH=.:/bin:/usr/local/bin:/etc<br />
86        REDIRECT_QUERY_STRING=<br />
87        REDIRECT_REMOTE_ADDR=121.345.78.123<br />
88        REDIRECT_REMOTE_HOST=ooh.ahhh.com<br />
89        REDIRECT_SERVER_NAME=crash.bang.edu<br />
90        REDIRECT_SERVER_PORT=80<br />
91        REDIRECT_SERVER_SOFTWARE=Apache/0.8.15<br />
92        REDIRECT_URL=/cgi-bin/buggy.pl
93      </code></p></div>
94
95      <p><code>REDIRECT_</code> ���λ翡 �ָ��϶�.</p>
96
97      <p>�ּ��� <code>REDIRECT_URL</code>��
98      <code>REDIRECT_QUERY_STRING</code>�� (cgi-script��
99      cgi-include��) �� URL�� �Ѱ����. �ٸ� ������ ����
100      �߻��ϱ� ���� <span class="transnote">(<em>����;</em> �̸����� <code>REDIRECT_</code>��
101      �� ȯ�溯����)</span> ������ ��쿡�� �ִ�.
102      <code class="directive"><a href="/mod/core.html#errordocument">ErrorDocument</a></code>��
103      <em>�ܺη�</em> (���� ������ <code>http:</code>��
104      ���� ��Ŵ(scheme)���� �����Ѵٸ�) �����̷����Ѵٸ�
105      ���� � �͵� �������� <strong>�ʴ´�</strong>.</p>
106    
107  </div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
108<div class="section">
109<h2><a name="configuration" id="configuration">����</a></h2>
110    
111
112    <p><code class="directive"><a href="/mod/core.html#allowoverride">AllowOverride</a></code>��
113    ������ �����Ǿ�ٸ� .htaccess ���Ͽ���
114    <code class="directive"><a href="/mod/core.html#errordocument">ErrorDocument</a></code>�� �����
115    �� �ִ�.</p>
116
117    <p>������ ���̴�...</p>
118
119    <div class="example"><p><code>
120      ErrorDocument 500 /cgi-bin/crash-recover <br />
121      ErrorDocument 500 "Sorry, our script crashed. Oh dear" <br />
122      ErrorDocument 500 http://xxx/ <br />
123      ErrorDocument 404 /Lame_excuses/not_found.html <br />
124      ErrorDocument 401 /Subscription/how_to_subscribe.html
125    </code></p></div>
126
127    <p>������,</p>
128
129    <div class="example"><p><code>
130      ErrorDocument &lt;3-digit-code&gt; &lt;action&gt;
131    </code></p></div>
132
133    <p>������ action��,</p>
134
135    <ol>
136      <li>����� ����. ���ǥ (")�� ���� �տ� ���δ�. �ڿ� ������
137      ���ǥ�� ��µȴ�. <em>����: �տ� ���� ���ǥ (")�� ��µ���
138      �ʴ´�.</em></li>
139
140      <li>�����̷����� �ܺ� URL.</li>
141
142      <li>�����̷����� ���� URL.</li>
143    </ol>
144  </div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
145<div class="section">
146<h2><a name="custom" id="custom">��������� ���� ����� �����̷���</a></h2>
147    
148
149    <p>URL�� �����̷����ϴ� ����ġ �ൿ��
150    ��ũ��Ʈ/server-include�� ȯ�溯���� �� �Ѱ��ֵ��� ����Ǿ��.</p>
151
152    <h3>���� �ൿ</h3>
153      
154
155      <p>�����̷��ǵǴ� ��ũ��Ʈ�� ǥ�� CGI �������� �Ѿ��.
156      ����� �����̷����� �Ͼ���� �� �� ���.</p>
157    
158
159    <h3>���ο� �ൿ</h3>
160      
161
162      <p>�����̷��ǵ� ��ũ��Ʈ�� ���ο� ȯ�溯������ �����
163      �� �ִ�. ��� �տ� <code>REDIRECT_</code>�� �پ��ִ�.
164      <code>REDIRECT_</code> ȯ�溯���� �� CGI ȯ�溯����
165      �տ� <code>REDIRECT_</code>�� �ٿ��� �����. <em>����
166      ���</em>, <code>HTTP_USER_AGENT</code>��
167      <code>REDIRECT_HTTP_USER_AGENT</code>�� �Ǿ��. �̷� ������
168      �߰��� ��ũ��Ʈ�� �� URL�� �˵��� ����ġ��
169      <code>REDIRECT_URL</code>�� <code>REDIRECT_STATUS</code>��
170      �����Ѵ�. �� URL�� �����̷��ǵ� URL ��� ���� �α׿�
171      ����� �� �ִ�.</p>
172
173      <p>ErrorDocument�� ���� ������ �ִ� CGI ��ũ��Ʈ��
174      �����̷����Ѵٸ�, ��ũ��Ʈ�� Ŭ���̾�Ʈ���� ���� ��Ȳ��
175      Ȯ���� ����ϱ����� ��¿� "<code>Status:</code>" ���
176      �ʵ带 �����ؾ� �Ѵ�. ���� ���, Perl�� �ۼ��� ErrorDocument
177      ��ũ��Ʈ�� ������ ����:</p>
178
179      <div class="example"><p><code>
180        ... <br />
181        print  "Content-type: text/html\n"; <br />
182        printf "Status: %s Condition Intercepted\n", $ENV{"REDIRECT_STATUS"}; <br />
183        ...
184      </code></p></div>
185
186      <p><code>404&nbsp;Not&nbsp;Found</code>�� ���� Ư�� ����
187      ��Ȳ�� ���� ��ũ��Ʈ���, ��� <span class="transnote">(<em>����;</em> ������)</span>
188      Ư�� �����ڵ�� ������ ����� �� �ִ�.</p>
189
190      <p>(Ŭ���̾�Ʈ���� �����̷����� ��û�ϱ�����) ���信
191      <code>Location:</code> ����� �����Ѵٸ�, ��ũ��Ʈ��
192      <em>�ݵ��</em> (<code>302&nbsp;Found</code> ����) ������
193      <code>Status:</code> ����� ����ؾ� ���� �����϶�. �׷���������
194      <code>Location:</code> ����� �ƹ� �ҿ��� �� �� �ִ�.</p>
195    
196  </div></div>
197<div class="bottomlang">
198<p><span>������ ���: </span><a href="/en/custom-error.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
199<a href="/es/custom-error.html" hreflang="es" rel="alternate" title="Espa&#241;ol">&nbsp;es&nbsp;</a> |
200<a href="/fr/custom-error.html" hreflang="fr" rel="alternate" title="Fran&#231;ais">&nbsp;fr&nbsp;</a> |
201<a href="/ja/custom-error.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
202<a href="/ko/custom-error.html" title="Korean">&nbsp;ko&nbsp;</a> |
203<a href="/tr/custom-error.html" hreflang="tr" rel="alternate" title="T&#252;rk&#231;e">&nbsp;tr&nbsp;</a></p>
204</div><div class="top"><a href="#page-header"><img src="/images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">Comments</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&amp;A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our <a href="http://httpd.apache.org/lists.html">mailing lists</a>.</div>
205<script type="text/javascript"><!--//--><![CDATA[//><!--
206var comments_shortname = 'httpd';
207var comments_identifier = 'http://httpd.apache.org/docs/2.4/custom-error.html';
208(function(w, d) {
209    if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
210        d.write('<div id="comments_thread"><\/div>');
211        var s = d.createElement('script');
212        s.type = 'text/javascript';
213        s.async = true;
214        s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
215        (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
216    }
217    else { 
218        d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
219    }
220})(window, document);
221//--><!]]></script></div><div id="footer">
222<p class="apache">Copyright 2014 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
223<p class="menu"><a href="/mod/">���</a> | <a href="/mod/directives.html">���þ��</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="/glossary.html">���</a> | <a href="/sitemap.html">����Ʈ��</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!--
224if (typeof(prettyPrint) !== 'undefined') {
225    prettyPrint();
226}
227//--><!]]></script>
228</body></html>