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>������� (Content Negotiation) - 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>������� (Content Negotiation)</h1>
23<div class="toplang">
24<p><span>������ ���: </span><a href="/en/content-negotiation.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
25<a href="/fr/content-negotiation.html" hreflang="fr" rel="alternate" title="Fran&#231;ais">&nbsp;fr&nbsp;</a> |
26<a href="/ja/content-negotiation.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
27<a href="/ko/content-negotiation.html" title="Korean">&nbsp;ko&nbsp;</a> |
28<a href="/tr/content-negotiation.html" hreflang="tr" rel="alternate" title="T&#252;rk&#231;e">&nbsp;tr&nbsp;</a></p>
29</div>
30<div class="outofdate">�� ������ �ֽ��� ���� �ƴմϴ�.
31            �ֱٿ� ����� ������ ���� ������ ����ϼ���.</div>
32
33
34    <p>����ġ�� HTTP/1.1 �Ծ࿡ ���� �������(content
35    negotiation)�� �����Ѵ�. ��������� media type, ���, ��������,
36    ���ڵ� � ���� ������ ������ ��ȣ���� ��� �ڿ���
37    ���� ������ ǥ���� �����Ѵ�. �� �ҿ����� ��� ������ ������
38    �������� ��û�� ���������� ó���ϴ� ��ɵ� �ִ�.</p>
39
40    <p>�⺻������ �����ϵǴ� <code class="module"><a href="/mod/mod_negotiation.html">mod_negotiation</a></code>
41    ����� ������� ����� �����Ѵ�.</p>
42</div>
43<div id="quickview"><ul id="toc"><li><img alt="" src="/images/down.gif" /> <a href="#about">������� ����</a></li>
44<li><img alt="" src="/images/down.gif" /> <a href="#negotiation">����ġ�� ���</a></li>
45<li><img alt="" src="/images/down.gif" /> <a href="#methods">�����</a></li>
46<li><img alt="" src="/images/down.gif" /> <a href="#better">ǰ���� �����ϱ�</a></li>
47<li><img alt="" src="/images/down.gif" /> <a href="#extensions">�ڿ�������(transparent) ��������� Ȯ��</a></li>
48<li><img alt="" src="/images/down.gif" /> <a href="#naming">�����۸�ũ�� �̸���Ģ�� ���Ͽ�</a></li>
49<li><img alt="" src="/images/down.gif" /> <a href="#caching">ij���� ���Ͽ�</a></li>
50</ul><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div>
51<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
52<div class="section">
53<h2><a name="about" id="about">������� ����</a></h2>
54
55    <p>�ڿ��� ���� �ٸ� ǥ���� ���� �� �ִ�. ���� ���, �ٸ�
56    �� �ٸ� media type Ȥ�� �� ��ΰ� �ٸ� ǥ������ ����
57    �� �ִ�. ���� ����� ǥ���� �����ϴ� �Ѱ��� ����� ����ڿ���
58    ��� �������� �����ְ� �����ϰ� �ϴ� ���̴�. �׷��� ������
59    �ڵ����� �����ϴ� �͵� �����ϴ�. �̴� ������ ��û��
60    �Ϻη� �׵��� ��ȣ�ϴ� ǥ���� ���� ������ �����⶧����
61    �����ϴ�. ���� ���, ������� �������� �Ҿ��, �׷���
62    ��ٸ� ����� ������ ����ʹٰ� �˷��� �� �ִ�. �������
63    ��û�� ����� �׵��� ��ȣ�� ��Ÿ����. ���� �Ҿ�ε� ǥ������
64    ��û�Ѵٸ� ������� ������ ���� ������.</p>
65
66<div class="example"><p><code>Accept-Language: fr</code></p></div>
67
68    <p>�̷� ��ȣ�� ǥ���� ���� �ٸ� ��쿡�� ����ȴ�.</p>
69
70    <p>������ �� ������ ��û�� ���� ������ �Ҿ�� ���
71    ���� �� ������, �Ҿ �� ��ȣ�ϰ�, ���� media type�� ����
72    �� ������, �Ϲ� �ؽ�Ʈ ���ٴ� HTML, �ٸ� media type ���ٴ�
73    GIF�� JPEG�� ��ȣ�Ѵٰ� �˷��ش�.</p>
74
75<div class="example"><p><code>
76  Accept-Language: fr; q=1.0, en; q=0.5<br />
77  Accept: text/html; q=1.0, text/*; q=0.8, image/gif; q=0.6, image/jpeg; q=0.6, image/*; q=0.5, */*; q=0.1
78</code></p></div>
79
80    <p>����ġ�� HTTP/1.1 �Ծ࿡ ���ǵ� '���� �ֵ�(server driven)'
81    ��������� �����Ѵ�. ����ġ�� <code>Accept</code>,
82    <code>Accept-Language</code>, <code>Accept-Charset</code>,
83    <code>Accept-Encoding</code> ��û ����� ��� �����Ѵ�.
84    ��, ����ġ�� RFC 2295�� RFC 2296�� ���ǵ� �������� ���������
85    '�ڿ�������(transparent)' ��û ����� �����Ѵ�. �׷��� ��
86    RFC�� ���ǵ� '��� ���(feature negotiation)'�� ��������
87    �ʴ´�.</p>
88
89    <p><strong>�ڿ�(resource)</strong>�� (RFC 2396) URI�� �����ϴ�
90    �������� �����. ����ġ�� ���� �������� �ڿ���
91    <strong>ǥ��(representations)</strong>�� �����Ѵ�. ǥ����
92    ������ media type, ��������, ���ڵ� ���� ���� ����Ʈ���
93    ���ִ�. �ڿ��� ���� ǥ���� (���δ� ���� ���� �ִ�) ����ȴ�.
94    �ڿ� ���� ǥ���� �ִٸ� �ڿ���
95    <strong>������ϴٰ�(negotiable)</strong> �θ���, �̶�
96    �� ǥ���� <strong>����(variant)</strong>�̶�� �Ѵ�.
97    ������� �ڿ��� ���� ���� �����
98    <strong>����(dimension)</strong>��� �Ѵ�.</p>
99</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
100<div class="section">
101<h2><a name="negotiation" id="negotiation">����ġ�� ���</a></h2>
102
103    <p>�ڿ��� ����ϱ����� ������ �� ���� ���� ������ �ʿ��ϴ�.
104    ���� �ΰ��� ����� �ϳ��� ������ ��´�:</p>
105
106    <ul>
107      <li>������ ���� ���ϵ��� ���� ������ type map�� (<em>����
108      ���</em>, <code>*.var</code> ����) ����ϰų�,</li>
109
110      <li>���� ���������ʾƵ� ������ ���ϸ��� ��Ģ�� ã�Ƽ�
111      ��� �����ϴ� 'MultiViews'�� ����Ѵ�.</li>
112    </ul>
113
114   <h3><a name="type-map" id="type-map">type-map ���� ����ϱ�</a></h3>
115
116    <p>type map�� <code>type-map</code>�̶� �ڵ鷯�� �����
117    (Ȥ�� ���� ����ġ ������ ȣȯ�� ���� MIME type��
118    <code>application/x-type-map</code>��) ������. �� �����
119    ����Ϸ��� �������� <code>type-map</code> �ڵ鷯�� ����
120    ���� Ȯ���ڸ� �����ؾ� �Ѵ�. ���� �������Ͽ� ������ ����
121    �����ϴ� ���� ����.</p>
122
123<div class="example"><p><code>AddHandler type-map .var</code></p></div>
124
125    <p>Type map ������ �ش��ϴ� �ڿ�� �̸��� ���ƾ� �ϰ�,
126    �� ���� ���� �׸��� �־�� �Ѵ�. �׸��� ���� HTTP���
127    ��� �ٷ� �����ȴ�. ���� ���� ������ �׸���� ���ٷ�
128    �����Ѵ�. �׸�ȿ��� ������ ����� �� ���. (�̷��� ��
129    �ʿ䰡 ���, �־ ����������) ���� �׸��� �������� ������
130    �ִ� �������� map ������ �����ϴ� ���� �����̴�. ������
131    map ���� ����. �� ������ �̸��� <code>foo.var</code>��,
132    <code>foo</code>��� �ڿ��� �����Ѵ�.</p>
133
134<div class="example"><p><code>
135  URI: foo<br />
136<br />
137  URI: foo.en.html<br />
138  Content-type: text/html<br />
139  Content-language: en<br />
140<br />
141  URI: foo.fr.de.html<br />
142  Content-type: text/html;charset=iso-8859-2<br />
143  Content-language: fr, de<br />
144</code></p></div>
145    <p>typemap ������ ���ϸ� Ȯ���� ����, ������ Multiviews��
146    ����Ͽ���, �켱���� ������ �����϶�. ������ ���� �ٸ� ǰ����
147    ����ٸ�, ������ ���� (JPEG, GIF, ASCII-art�� �ش��ϴ�)
148    media type�� "qs" �Ķ���ͷ� ǰ��(source quality)�� ǥ����
149    �� �ִ�:</p>
150
151<div class="example"><p><code>
152  URI: foo<br />
153<br />
154  URI: foo.jpeg<br />
155  Content-type: image/jpeg; qs=0.8<br />
156<br />
157  URI: foo.gif<br />
158  Content-type: image/gif; qs=0.5<br />
159<br />
160  URI: foo.txt<br />
161  Content-type: text/plain; qs=0.01<br />
162</code></p></div>
163
164    <p>qs ���� 0.000���� 1.000 ���̴�. qs ���� 0.000�� ������
165    ��� ���õ��� ������ �����϶�. 'qs' ���� ��� ������ 1.0����
166    ��޵ȴ�. qs ���� Ŭ���̾�Ʈ�� �ɷ°�� ������ �ٸ� ������
167    ���Ͽ� �� ������ ������� 'ǰ��'�� ��Ÿ����. ���� ���,
168    ������ ��Ÿ������ ��� JPEG ������ ASCII ���Ϻ��ٴ� �׻�
169    ���� ǰ���� �����. �׷��� �ڿ��� �� ASCII art���ٸ�
170    ASCII ǥ���� JPEG ǥ������ �� ���� ǰ���� ���� �� �ִ�.
171    �׷��Ƿ� � ������ qs ���� ǥ���Ϸ��� �ڿ��� ����
172    ��� �ٸ���.</p>
173
174    <p>�����ϴ� ��� ��� ����� <a href="mod/mod_negotiation.html#typemaps">mod_negotation
175    typemap</a> ������ ����϶�.</p>
176
177
178<h3><a name="multiviews" id="multiviews">Multiviews</a></h3>
179
180    <p><code>MultiViews</code>�� ���丮�� �ɼ��̹Ƿ�,
181    <code>httpd.conf</code>��
182    <code class="directive"><a href="/mod/core.html#directory">&lt;Directory&gt;</a></code>,
183    <code class="directive"><a href="/mod/core.html#location">&lt;Location&gt;</a></code>,
184    <code class="directive"><a href="/mod/core.html#files">&lt;Files&gt;</a></code>
185    ���� Ȥ�� (<code class="directive"><a href="/mod/core.html#allowoverride">AllowOverride</a></code>��
186    ������ �����Ǿ�ٸ�) <code>.htaccess</code> ������
187    <code class="directive"><a href="/mod/core.html#options">Options</a></code> ���þ ������
188    �� �ִ�. <code>Options All</code>�� <code>MultiViews</code>��
189    �������������� �����϶�. ��� ���� ����� �Ѵ�.</p>
190
191    <p><code>MultiViews</code>�� ����ϸ� ������ ���� ���� �Ͼ��:
192    ������ <code>/some/dir/foo</code>�� ���� ��û�� �ް�
193    <code>/some/dir/foo</code>�� <code>MultiViews</code>�� �����ϸ�
194    <code>/some/dir/foo</code>�� �������� <em>����</em> ���,
195    ������ ���丮���� �̸��� foo.*�� ���ϵ��� ��� �����ϴ�
196    ������ type map�� �����. Ŭ���̾�Ʈ�� ��û�� media type��
197    content-encoding�� ������ ���߿� ���� ������ ���� �����Ѵ�.</p>
198
199    <p><code>MultiViews</code>�� ������ ���丮�� �����Ҷ�
200    ������ ã�� <code class="directive"><a href="/mod/mod_dir.html#directoryindex">DirectoryIndex</a></code> ���þ��
201    ���ȴ�. ���������� ������ ���ٸ�,</p>
202<div class="example"><p><code>DirectoryIndex index</code></p></div>
203    <p><code>index.html</code>�� <code>index.html3</code>��
204    ��� �ִٸ� ������ �̵� �߿� �ϳ��� �����Ѵ�. �� ��� ���
205    <code>index.cgi</code>�� �ִٸ�, ������ �װ��� �����Ѵ�.</p>
206
207    <p>���丮�� ������ ������ �ϳ��� Charset, Content-Type,
208    Language, Encoding�� �Ǵ��ϴ� <code>mod_mime</code>�� ����
209    Ȯ���ڸ� ����ٸ�, ���� <code class="directive"><a href="/mod/mod_mime.html#multiviewsmatch">MultiViewsMatch</a></code> ���þ� ������
210    �޷Ǵ�. �� ���þ�� �ڵ鷯, ����, �ٸ� Ȯ������� MultiViews
211    ��� ������ ���θ� �����Ѵ�.</p>
212
213</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
214<div class="section">
215<h2><a name="methods" id="methods">�����</a></h2>
216
217    <p>����ġ�� type-map �����̳� ���丮�� �ִ� ���ϸ���
218    �־��� �ڿ� ���� ���� ����� ��ԵǸ� '������' ������
219    �����ϱ����� �� ����� �ϳ��� ����Ѵ�. ����ġ �������
220    ����� ����ϱ����� ��Ȯ�� ����� ��� �Ͼ���� �ڼ���
221    �� �ʿ�� ���. �׷��� �ñ��� ����� ���� �� ����� �����Ѵ�.</p>
222
223    <p>�ΰ��� ������� �ִ�:</p>
224
225    <ol>
226      <li><strong>����ġ �˰����� ����Ͽ� ������ �ֵ��ϴ�
227      ���</strong>�� �Ϲ����� ��쿡 ����Ѵ�. ����ġ �˰�����
228      �Ʒ��� �ڼ��� �����Ѵ�. �� �˰����� ����ϸ� ����ġ��
229      �� ���� ��� ������� ���� Ư�� ������
230      ǰ����(quality factor)�� '�����Ѵ�'. ����ġ�� ǰ������
231      �����ϴ� ����� �Ʒ��� �ڼ��� �����Ѵ�.</li>
232
233      <li><strong>�ڿ�������(Transparent) �������</strong>��
234      ������ RFC 2295�� ���ǵ� ������� ��û�� ��쿡��
235      ����Ѵ�. �� ������� '������' ������ ������ ������
236      ������� �ο��Ѵ�. �׷��� ���� �������� �˰���
237      �޷ȴ�. �ڿ������� �������߿� ������� ����ġ����
238      RFC 2296�� ���ǵ� '��� ������ �˰���(remote variant
239      selection algorithm)'�� ��û�� �� �ִ�.</li>
240    </ol>
241
242<h3><a name="dimensions" id="dimensions">����� ����</a></h3>
243
244    <table>
245      
246      <tr valign="top">
247        <th>����</th>
248
249        <th>����</th>
250      </tr>
251
252      <tr valign="top">
253        <td>Media Type</td>
254
255        <td>������� <code>Accept</code> ����� ��ȣ�� ��Ÿ����.
256        �� �׸��� ǰ������ ���� �� �ִ�. ������ ���� ǰ������
257        ("qs" �Ķ����) ���� �� �ִ�.</td>
258      </tr>
259
260      <tr valign="top">
261        <td>Language</td>
262
263        <td>������� <code>Accept-Language</code> ����� ��ȣ��
264        ��Ÿ����. �� �׸��� ǰ������ ���� �� �ִ�. ������
265        ���� �� ���� (Ȥ�� �ƹ� �� ����) �� �ִ�.</td>
266      </tr>
267
268      <tr valign="top">
269        <td>Encoding</td>
270
271        <td>������� <code>Accept-Encoding</code> ����� ��ȣ��
272        ��Ÿ����. �� �׸��� ǰ������ ���� �� �ִ�.</td>
273      </tr>
274
275      <tr valign="top">
276        <td>Charset</td>
277
278        <td>������� <code>Accept-Charset</code> ����� ��ȣ��
279        ��Ÿ����. �� �׸��� ǰ������ ���� �� �ִ�. ������
280        media type�� �Ķ���ͷ� ���������� ��Ÿ�� �� �ִ�.</td>
281      </tr>
282    </table>
283
284
285<h3><a name="algorithm" id="algorithm">����ġ ��� �˰���</a></h3>
286
287    <p>����ġ�� ������� ���� '������' ������ (�ִٸ�)
288    �����ϱ����� �Ʒ� �˰����� ����Ѵ�. �� �˰����� ������
289    �� ���. ������ ���� �����Ѵ�:</p>
290
291    <ol>
292      <li>����, ����� �� ������ ���� �ش��ϴ� <em>Accept*</em>
293      ����� �˻��ϰ�, �� ���� ǰ���� �ű��. � ������
294      <em>Accept*</em> ����� �޾Ƶ����� �ʴ� ������ �ĺ�����
295      �����Ѵ�. � ���� ���������� 4 �ܰ�� ����.</li>
296
297      <li>
298        �ĺ����� �ϳ��� �����Ͽ� '������' ������ ã�´�. ����
299        �� �˻�� ���� �Ͼ��. �� �˻翡�� ���õ�������
300        ������ ���ܵȴ�. �� �˻��� �� ���� ������ �̸� ������
301        �������� �����ϰ� 3 �ܰ�� ����. ���� ������ ������
302        ���� �˻縦 �����Ѵ�.
303
304        <ol>
305          <li><code>Accept</code> ����� ǰ������ ������
306          media type�� ���� ǰ���� ���Ͽ� ���� ���� ����
307          ���� ������ �����Ѵ�.</li>
308
309          <li>���� ���� ���(language) ǰ������ ���� ������
310          �����Ѵ�.</li>
311
312          <li><code>Accept-Language</code> ����� (�ִٸ�)
313          ���� ����� �� Ȥ�� <code>LanguagePriority</code>
314          ���þ (�ִٸ�) ���� ����� �� ������ ����
315          ������ �� ���� ������ �����Ѵ�.</li>
316
317          <li>���� ���� (text/html media type�� ������ ��Ÿ����)
318          'level' media �Ķ���͸� ���� ������ �����Ѵ�.</li>
319
320          <li><code>Accept-Charset</code> ����� ������ ����
321          ������ charset media �Ķ���͸� ���� ������ ã�´�.
322          ����� ��ٸ� ISO-8859-1 ���������� ���� ��ȣ�Ѵ�.
323          <code>text/*</code> media type�� �������� ���������
324          Ư�� �������հ� ����������� ������ ISO-8859-1��
325          �����Ѵ�.</li>
326
327          <li>ISO-8859-1�� <em>�ƴ�</em> charset media �Ķ���͸�
328          ���� ������� �����Ѵ�. �׷� ������ ��ٸ�, ��� ���
329          ������ �����Ѵ�.</li>
330
331          <li>���� ������ ���ڵ��� ���� ������ �����Ѵ�.
332          user-agent�� ������ ���ڵ��� ���� ������ �ִٸ� ��
333          ������ �����Ѵ�. �׷����ʰ� ���ڵ�� ����� ���ڵ�ȵ�
334          ������ ���� �ִٸ� ���ڵ�ȵ� ������ �����Ѵ�. ������
335          ��� ���ڵ�Ǿ�ų� ��� ���ڵ�ȵ� ��� ��� ������
336          �����Ѵ�.</li>
337
338          <li>content length�� ���� ���� ������ �����Ѵ�.</li>
339
340          <li>���� ���� ù���� ������ �����Ѵ�. �̴� type-map
341          ������ �տ� ���԰ų�, ���丮���� ������ ���� ���
342          ���ϸ��� ASCII �ڵ� ��� �Ͽ� �տ� ������ ���̴�.</li>
343        </ol>
344      </li>
345
346      <li>���� �˰����� '������' ������ �����ߴ�. �̰��� ��������
347      ������. HTTP ���� ��� <code>Vary</code>�� ����� ������
348      ��Ÿ���� �ȴ�. (������� ij���� �ڿ��� ij���Ҷ� �� ������
349      ����� �� �ִ�.) ��.</li>
350
351      <li>�� �ܰ迡 �����ߴٸ� (��� ������ �������ϱ� ������)
352      � ���� ������ �ȵ� ����. ("No acceptable
353      representation"�� ���ϴ�) ���� 406�� �������� ��밡����
354      ������ ����� ���� HTML ������ ������ ������. ��, HTML
355      <code>Vary</code> ����� ������ ������ ��Ÿ����.</li>
356    </ol>
357
358</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
359<div class="section">
360<h2><a name="better" id="better">ǰ���� �����ϱ�</a></h2>
361
362    <p>����ġ�� ���� ���� ����ġ ��� �˰����� ������ ��Ű���ʰ�
363    ǰ������ �����Ѵ�. ������ �����ϰ� ��Ȯ�� ������ �������ʴ�
364    ������� (�˰�����) �� ���� ��� ������ ���ؼ���.
365    �θ� ���̴� �������� �Ϻδ� ���� �߸�� ������ �����ϵ���
366    <code>Accept</code> ����� ������. ������ �����ϰ� �ùٸ�
367    ������ �����ٸ�, ������ �����ʴ´�.</p>
368
369<h3><a name="wildcards" id="wildcards">Media Type�� ���ϵ�ī��</a></h3>
370
371    <p><code>Accept:</code> ��û ����� media type�� ���� ��ȣ��
372    ��Ÿ����. ��, *�� � ���ڿ��̶� �����ϱ⶧���� "image/*"��
373    "*/*" ���� '���ϵ�ī��' media type�� ����� ���� �ִ�. �׷���
374    ������ ���� ��û��:</p>
375
376<div class="example"><p><code>Accept: image/*, */*</code></p></div>
377
378    <p>"image/"�� �����ϴ� � type�� �ٸ� � type�� ��������
379    �ǹ��Ѵ�. � �������
380    �ڽ��� ������ �ٷ� �� �ִ� type�� �߰��� ���ϵ�ī�带 ������.
381    ���� ���:</p>
382
383<div class="example"><p><code>
384  Accept: text/html, text/plain, image/gif, image/jpeg, */*
385</code></p></div>
386    <p>������ ���� ������ type�� ��ȣ������ �ٸ� ǥ���� �ִٸ�
387    �װ͵� �������� ��Ÿ���� ���ؼ���. ������ ������ ����
388	���� ������ ���� ��������� ǰ���� ����� ���̴�.</p>
389<div class="example"><p><code>
390  Accept: text/html, text/plain, image/gif, image/jpeg, */*; q=0.01
391</code></p></div>
392    <p>���� ������ type�� ǰ������ �� �⺻���� (���� ����)
393    1.0�� �����. ���ϵ�ī�� */*�� ���� ��ȣ�� 0.01�� �����Ƿ�
394    ���� ������ type�� �´� ������ ��� ��쿡�� �ٸ� type����
395    ���ȴ�.</p>
396
397    <p><code>Accept:</code> ����� q ����� ���� <em>���</em>
398    "*/*"�� �ִٸ�, ����ġ�� �ٶ����� �ൿ�� ���� q ������ 0.01��
399    �����Ѵ�. ��, "type/*" ������ ���ϵ�ī�忡�� ("*/*"���ٴ�
400    �� ��ȣ�ϵ���) 0.02�� �����Ѵ�. <code>Accept:</code> �������
401    q ����� ������ media type�� �ִٸ� �̷� Ư���� ���� �߰�����
402    <em>�ʴ´�</em>. �׷��� ������� ������ ������ ��������
403    ��û�� ��û�ѵ��� ó���Ѵ�.</p>
404
405
406<h3><a name="exceptions" id="exceptions">���(language) ����� ����</a></h3>
407
408    <p>����ġ 2.0�� ��� ����� ������ ��� �ε巴�� �����ϱ�����
409    ��� �˰��� ���� ���ܸ� � �߰��ߴ�.</p>
410
411    <p>Ŭ���̾�Ʈ�� ������ �������� ��û������ ������ ������
412    ���� <code>Accept-language</code>�� �´� �������� �� �Ѱ���
413    ã���� ������ ������, �׷��� ���� ��� ������ Ŭ���̾�Ʈ����
414    "No Acceptable Variant"�� "Multiple Choices" ������ ������.
415    �̷� ������ ���ϱ����� �� ��� <code>Accept-language</code>��
416    �����ϰ� Ŭ���̾�Ʈ�� ��û�� ��Ȯ�� ������ ������ ������
417    �������� ����ġ�� ������ �� �ִ�. <code class="directive"><a href="/mod/mod_negotiation.html#forcelanguagepriority">ForceLanguagePriority</a></code>
418    ���þ�� ������ �̷� ������ �ϳ� Ȥ�� �Ѵٸ� �����ϰ�
419    <code class="directive"><a href="/mod/mod_negotiation.html#languagepriority">LanguagePriority</a></code>
420    ���þ�� �Ǵ��ϵ��� �Ѵ�.</p>
421
422    <p>��, ������ �´� �� ��ã�� ��� �θ�� ã�� ����
423    �ִ�. ���� ��� Ŭ���̾�Ʈ�� ������� ���ϴ�
424    <code>en-GB</code> ���� ������ ��û�� ���, HTTP/1.1 ǥ�ؿ�
425    ��� ������ <code>en</code>���θ� ǥ�õ� ������ �Ϲ�������
426    �������� ���Ѵ�. (�׷��� ������� �����ϴ� ���ڰ� �Ϲ�����
427    ��� ������ �� �����Ƿ� <code>Accept-Language</code> �����
428    <code>en-GB</code>�� �����ϰ� <code>en</code>�� ��������������
429    ���� Ȯ���� �߸�� �������� �����϶�. �������� ���� ����
430    Ŭ���̾�Ʈ���� �̷� ������ �⺻�������ִ�.) �ٸ� ��
431    ã�� ���Ͽ� ������ "No Acceptable Variants" ���� �����ų�
432    <code class="directive"><a href="/mod/mod_negotiation.html#languagepriority">LanguagePriority</a></code>��
433    ���ư��� �Ѵٸ�, ������ ������� �Ծ��� �����ϰ�
434    <code>en-GB</code>�� <code>en</code> ������ �����Ѵ�.
435    �Ϲ������� ����ġ�� �θ�� �ſ� ���� ǰ������
436    Ŭ���̾�Ʈ�� ����� ��Ͽ� �߰��Ѵ�. �׷��� Ŭ���̾�Ʈ��
437    "en-GB; q=0.9, fr; q=0.8"�� ��û�ϰ� ������ "en"�� "fr"
438    ������ �ִٸ�, "fr" ������ ���õ��� �����϶�. �̴� HTTP/1.1
439    ǥ���� ��Ű��, �ùٷ� ������ Ŭ���̾�Ʈ�� ȿ��������
440    �����ϱ������̴�.</p>
441
442    <p>����ڰ� ��ȣ�ϴ� �� �˾Ƴ������� (��Ű�� Ư����
443    URL-��� ����) ��� ����� �����ϱ����� ����ġ 2.0.47����
444    <code class="module"><a href="/mod/mod_negotiation.html">mod_negotiation</a></code>�� <code>prefer-language</code>���
445    <a href="env.html">ȯ�溯��</a>�� �ν��Ѵ�. �� ȯ�溯����
446    �����ϰ� ������ ����±׸� �����Ѵٸ�,
447    <code class="module"><a href="/mod/mod_negotiation.html">mod_negotiation</a></code>�� �ش��ϴ� ������ �����Ϸ���
448    �õ��Ѵ�. �׷� ������ ��ٸ� �Ϲ����� �������� �����Ѵ�.</p>
449
450    <div class="example"><h3>����</h3><p><code>
451      SetEnvIf Cookie "language=(.+)" prefer-language=$1
452    </code></p></div>
453
454</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
455<div class="section">
456<h2><a name="extensions" id="extensions">�ڿ�������(transparent) ��������� Ȯ��</a></h2> 
457
458<p>����ġ�� ������ ���� �ڿ������� ����Ȯ�� ���������� (RFC 2295)
459Ȯ���Ѵ�. ���� ����� ���ο� <code>{encoding ..}</code>�� Ư��
460content-encoding�� ���� ������ ��Ī�Ѵ�. RVSA/1.0 �˰�����
461(RFC 2296) ��Ͽ��� ���ڵ�� ������ �ν��� �� �ְ�, ���ڵ���
462<code>Accept-Encoding</code> ��û ����� �´� ��� ���ڵ��
463����鵵 �ĺ��� ����ϵ��� Ȯ��Ǿ��. RVSA/1.0 ������ ������
464������ ã�� �� ���� ǰ������ �Ҽ��� 5�ڸ����� �ݿø�����
465�ʴ´�.</p>
466</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
467<div class="section">
468<h2><a name="naming" id="naming">�����۸�ũ�� �̸���Ģ�� ���Ͽ�</a></h2>
469
470    <p>���(language) ����� ����Ѵٸ� ������ ���� Ȯ���ڸ�
471    ������ Ȯ������ ��� ���� �������Ƿ� ���ϸ� ���� �ٸ�
472    �̸���Ģ�� ����� �� �ִ�. (�ڼ��� ������ <a href="mod/mod_mime.html#multipleext">mod_mime</a> ������
473    ����϶�.)</p>
474
475    <p>�������� ������ MIME-type Ȯ���� (<em>���� ���</em>,
476    <code>html</code>), ��쿡 ��� encoding Ȯ���� (<em>����
477    ���</em>, <code>gz</code>), ���Ͽ� ���� ��� ������ �ִ�
478    ��� ���� ��� Ȯ���ڸ� (<em>���� ���</em>, <code>en</code>)
479    �����.</p>
480
481    <p>����:</p>
482
483    <ul>
484      <li>foo.en.html</li>
485
486      <li>foo.html.en</li>
487
488      <li>foo.en.html.gz</li>
489    </ul>
490
491    <p>������ ��� ���ϸ�� �� ���Ͽ� ���� ��ȿ�ϰ� ��ȿ��������
492    �����۸�ũ�� ���δ�:</p>
493
494    <table class="bordered">
495      
496      <tr>
497        <th>���ϸ�</th>
498
499        <th>��ȿ�� �����۸�ũ</th>
500
501        <th>��ȿ�������� �����۸�ũ</th>
502      </tr>
503
504      <tr>
505        <td><em>foo.html.en</em></td>
506
507        <td>foo<br />
508         foo.html</td>
509
510        <td>-</td>
511      </tr>
512
513      <tr>
514        <td><em>foo.en.html</em></td>
515
516        <td>foo</td>
517
518        <td>foo.html</td>
519      </tr>
520
521      <tr>
522        <td><em>foo.html.en.gz</em></td>
523
524        <td>foo<br />
525         foo.html</td>
526
527        <td>foo.gz<br />
528         foo.html.gz</td>
529      </tr>
530
531      <tr>
532        <td><em>foo.en.html.gz</em></td>
533
534        <td>foo</td>
535
536        <td>foo.html<br />
537         foo.html.gz<br />
538         foo.gz</td>
539      </tr>
540
541      <tr>
542        <td><em>foo.gz.html.en</em></td>
543
544        <td>foo<br />
545         foo.gz<br />
546         foo.gz.html</td>
547
548        <td>foo.html</td>
549      </tr>
550
551      <tr>
552        <td><em>foo.html.gz.en</em></td>
553
554        <td>foo<br />
555         foo.html<br />
556         foo.html.gz</td>
557
558        <td>foo.gz</td>
559      </tr>
560    </table>
561
562    <p>�� ǥ�� ���� �����۸�ũ�� � Ȯ���ڵ� ��� �̸���
563    (<em>���� ���</em>, <code>foo</code>) �׻� ����� �� ������
564    �� �� �ִ�. �� ��� ������ ������ ���� ���� ��� �� �־,
565    <em>���� ���</em> ���̷���ũ ������ �����Ͼʰ�
566    <code>html</code> ������ <code>shtml</code>�̳�
567    <code>cgi</code>�� ������ �� �ִٴ� ���̴�.</p>
568
569    <p>��� �����۸�ũ�� MIME-type�� (<em>���� ���</em>,
570    <code>foo.html</code>) ����ϰ� �ʹٸ� (encoding Ȯ���ڰ�
571    �ִٸ� �̰͵� �����Ͽ�) ��� Ȯ���ڸ� MIME-type Ȯ���ں���
572    �����ʿ� (<em>���� ���</em>, <code>foo.html.en</code>)
573    �ξ���Ѵ�.</p>
574</div><div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
575<div class="section">
576<h2><a name="caching" id="caching">ij���� ���Ͽ�</a></h2>
577
578    <p>ij���� ǥ���� �����ϸ� ǥ���� ��û URL�� �����Ų��.
579    ������ �� URL�� ��û�ϸ� ij���� ����� ǥ���� ����Ѵ�.
580    �׷��� ������ ����� ������ �ڿ��� ��� ù��° ��û�� ����
581    ij���Ǿ� ���� ��û�� ij���� �߸�� ������ ���� �� �ִ�.
582    �̸� �������� ����ġ�� ���� ��������� ��ȯ�Ǵ� ��� ��û��
583    HTTP/1.0 Ŭ���̾�Ʈ�� ij���� ���ϵ��� ǥ�ø� �Ѵ�. ��, ����ġ��
584    ����� ������ ij���� ����ϴ� HTTP/1.1 ���������� �����
585    �����Ѵ�.</p>
586
587    <p><code class="directive"><a href="/mod/mod_negotiation.html#cachenegotiateddocs">CacheNegotiatedDocs</a></code>
588    ���þ�� HTTP/1.0 ȣȯ Ŭ���̾�Ʈ(������ Ȥ�� ij��)��
589    ���� ��û�� ���� ����� ������ ij���� �� �ְ� �Ѵ�. �� ���þ��
590    ������ ����ȣ��Ʈ ������ ����ϸ�, �ƱԸ�Ʈ�� �����ʴ´�.
591    �� ���þ�� HTTP/1.1 Ŭ���̾�Ʈ�� ��û��� ��谡 ���.</p>
592
593    <p>HTTP/1.1 Ŭ���̾�Ʈ���� ����ġ�� ������ ��� ������
594    �˷��ִ� <code>Vary</code> HTTP ��������� ������. �� ������
595    ����Ͽ� ���� ��û�� ij���� ���纻���� ��ü�� �� �ִ���
596    �Ǵ��� �� �ִ�. ����� ������ ������ ij���� ���纻��
597    ���Ѵٸ� <code>force-no-vary</code> <a href="env.html#special">ȯ�溯��</a>�� �����Ѵ�.</p>
598
599</div></div>
600<div class="bottomlang">
601<p><span>������ ���: </span><a href="/en/content-negotiation.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
602<a href="/fr/content-negotiation.html" hreflang="fr" rel="alternate" title="Fran&#231;ais">&nbsp;fr&nbsp;</a> |
603<a href="/ja/content-negotiation.html" hreflang="ja" rel="alternate" title="Japanese">&nbsp;ja&nbsp;</a> |
604<a href="/ko/content-negotiation.html" title="Korean">&nbsp;ko&nbsp;</a> |
605<a href="/tr/content-negotiation.html" hreflang="tr" rel="alternate" title="T&#252;rk&#231;e">&nbsp;tr&nbsp;</a></p>
606</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>
607<script type="text/javascript"><!--//--><![CDATA[//><!--
608var comments_shortname = 'httpd';
609var comments_identifier = 'http://httpd.apache.org/docs/2.4/content-negotiation.html';
610(function(w, d) {
611    if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
612        d.write('<div id="comments_thread"><\/div>');
613        var s = d.createElement('script');
614        s.type = 'text/javascript';
615        s.async = true;
616        s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
617        (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
618    }
619    else { 
620        d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
621    }
622})(window, document);
623//--><!]]></script></div><div id="footer">
624<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>
625<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[//><!--
626if (typeof(prettyPrint) !== 'undefined') {
627    prettyPrint();
628}
629//--><!]]></script>
630</body></html>