File: //usr/local/apache/manual/content-negotiation.html.ko.euc-kr
<?xml version="1.0" encoding="EUC-KR"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head>
<meta content="text/html; charset=EUC-KR" http-equiv="Content-Type" />
<!--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This file is generated from xml source: DO NOT EDIT
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-->
<title>������� (Content Negotiation) - Apache HTTP Server Version 2.4</title>
<link href="./style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
<link href="./style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
<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" />
<script src="./style/scripts/prettify.min.js" type="text/javascript">
</script>
<link href="./images/favicon.ico" rel="shortcut icon" /></head>
<body id="manual-page"><div id="page-header">
<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>
<p class="apache">Apache HTTP Server Version 2.4</p>
<img alt="" src="./images/feather.png" /></div>
<div class="up"><a href="./"><img title="<-" alt="<-" src="./images/left.gif" /></a></div>
<div id="path">
<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="./">Version 2.4</a></div><div id="page-content"><div id="preamble"><h1>������� (Content Negotiation)</h1>
<div class="toplang">
<p><span>������ ���: </span><a href="./en/content-negotiation.html" hreflang="en" rel="alternate" title="English"> en </a> |
<a href="./fr/content-negotiation.html" hreflang="fr" rel="alternate" title="Français"> fr </a> |
<a href="./ja/content-negotiation.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
<a href="./ko/content-negotiation.html" title="Korean"> ko </a> |
<a href="./tr/content-negotiation.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p>
</div>
<div class="outofdate">�� ������ �ֽ��� ������ �ƴմϴ�.
�ֱٿ� ����� ���� ���� ������ ����ϼ���.</div>
<p>����ġ�� HTTP/1.1 �Ծ ���� �������(content
negotiation)�� �����Ѵ�. ������� media type, ���, �������,
���ڵ� � ���� ������ ������ ��ȣ���� ���� �ڿ���
���� ������ ǥ��� �����Ѵ�. �� �ҿ���� ��� ������ ������
������ ��û�� ��������� ó���ϴ� ��ɵ� �ִ�.</p>
<p>�⺻������ ����ϵǴ� <code class="module"><a href="./mod/mod_negotiation.html">mod_negotiation</a></code>
���� ������� ���� �����Ѵ�.</p>
</div>
<div id="quickview"><a href="https://www.apache.org/foundation/contributing.html" class="badge"><img src="https://www.apache.org/images/SupportApache-small.png" alt="Support Apache!" /></a><ul id="toc"><li><img alt="" src="./images/down.gif" /> <a href="#about">������� ����</a></li>
<li><img alt="" src="./images/down.gif" /> <a href="#negotiation">����ġ�� ���</a></li>
<li><img alt="" src="./images/down.gif" /> <a href="#methods">����</a></li>
<li><img alt="" src="./images/down.gif" /> <a href="#better">ǰ���� �����ϱ�</a></li>
<li><img alt="" src="./images/down.gif" /> <a href="#extensions">�ڿ�������(transparent) �������� Ȯ��</a></li>
<li><img alt="" src="./images/down.gif" /> <a href="#naming">����۸�ũ�� �̸���Ģ�� ���Ͽ�</a></li>
<li><img alt="" src="./images/down.gif" /> <a href="#caching">ij���� ���Ͽ�</a></li>
</ul><h3>���</h3><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div>
<div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section">
<h2><a name="about" id="about">������� ����</a></h2>
<p>�ڿ��� ���� �ٸ� ǥ��� ���� �� �ִ�. ���� ���, �ٸ�
�� �ٸ� media type Ȥ�� �� ��ΰ� �ٸ� ǥ���� ���
�� �ִ�. ���� ������ ǥ��� �����ϴ� �Ѱ��� ���� ���ڿ���
��� ������ �����ְ� �����ϰ� �ϴ� ��̴�. ���� ������
�ڵ����� �����ϴ� �͵� �����ϴ�. �̴� ������ ��û��
�Ϻη� ��� ��ȣ�ϴ� ǥ��� ���� ������ ���������
�����ϴ�. ���� ���, ������ �������� �Ҿ��, ����
���ٸ� ����� ������ ����ʹٰ� �˷��� �� �ִ�. ������
��û�� ���� ��� ��ȣ�� ��Ÿ����. ���� �Ҿ�ε� ǥ�����
��û�Ѵٸ� ������ ����� ���� ������.</p>
<div class="example"><p><code>Accept-Language: fr</code></p></div>
<p>�̷� ��ȣ�� ǥ��� ���� �ٸ� ��쿡�� ���ȴ�.</p>
<p>����� �� ������ ��û�� ���� ������ �Ҿ�� ���
��� �� �����, �Ҿ �� ��ȣ�ϰ�, ���� media type�� ���
�� �����, �Ϲ� �ؽ�Ʈ ���ٴ� HTML, �ٸ� media type ���ٴ�
GIF�� JPEG�� ��ȣ�Ѵٰ� �˷��ش�.</p>
<div class="example"><p><code>
Accept-Language: fr; q=1.0, en; q=0.5<br />
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
</code></p></div>
<p>����ġ�� HTTP/1.1 �Ծ ���ǵ� '���� �ֵ�(server driven)'
������� �����Ѵ�. ����ġ�� <code>Accept</code>,
<code>Accept-Language</code>, <code>Accept-Charset</code>,
<code>Accept-Encoding</code> ��û ���� ��� �����Ѵ�.
��, ����ġ�� RFC 2295�� RFC 2296�� ���ǵ� ������ ��������
'�ڿ�������(transparent)' ��û ���� �����Ѵ�. ���� ��
RFC�� ���ǵ� '��� ���(feature negotiation)'�� �������
�ʴ´�.</p>
<p><strong>�ڿ�(resource)</strong>�� (RFC 2396) URI�� �����ϴ�
������ �����. ����ġ�� ���� �������� �ڿ���
<strong>ǥ�(representations)</strong>�� �����Ѵ�. ǥ���
������ media type, �������, ���ڵ� �� ���� ���Ʈ���
��ִ�. �ڿ��� ���� ǥ��� (���δ� ���� ���� �ִ�) �����ȴ�.
�ڿ��� ���� ǥ��� �ִٸ� �ڿ���
<strong>����ϴٰ�(negotiable)</strong> �θ���, �̶�
�� ǥ��� <strong>���(variant)</strong>�̶�� �Ѵ�.
����� �ڿ��� ��� ������ ����
<strong>����(dimension)</strong>��� �Ѵ�.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section">
<h2><a name="negotiation" id="negotiation">����ġ�� ���</a></h2>
<p>�ڿ��� ����ϱ��� ������ �� ����� ���� ������ �ʿ��ϴ�.
��� �ΰ��� ���� �ϳ��� ������ ��´�:</p>
<ul>
<li>����� �� ��ϵ� ���� ������ type map�� (<em>����
���</em>, <code>*.var</code> ���) ����ϰų�,</li>
<li>���� ��������ʾƵ� ������ ��ϸ��� ��Ģ�� ã�Ƽ�
���� �����ϴ� 'MultiViews'�� ����Ѵ�.</li>
</ul>
<h3><a name="type-map" id="type-map">type-map ��� ����ϱ�</a></h3>
<p>type map�� <code>type-map</code>�̶� �ڵ鷯�� �����
(Ȥ�� ��� ����ġ ������ ȣȯ�� ���� MIME type��
<code>application/x-type-map</code>��) ������. �� ����
����Ϸ��� �������� <code>type-map</code> �ڵ鷯�� ����
��� Ȯ��ڸ� �����ؾ� �Ѵ�. ���� ������Ͽ� ����� ����
�����ϴ� ��� ����.</p>
<div class="example"><p><code>AddHandler type-map .var</code></p></div>
<p>Type map ���� �ش��ϴ� �ڿ��� �̸��� ���ƾ� �ϰ�,
�� ����� ���� ��� �־�� �Ѵ�. �� ���� HTTP���
�� �ٷ� �����ȴ�. ����� ���� ������ ��� ��ٷ�
�����Ѵ�. ��ȿ��� ���� ����� �� ����. (�̷��� ��
�ʿ䰡 ����, �־ ���������) ���� ��� ������ ������
�ִ� ������ map ���� ����ϴ� ��� ����̴�. �����
map ��� ����. �� ���� �̸��� <code>foo.var</code>��,
<code>foo</code>��� �ڿ��� �����Ѵ�.</p>
<div class="example"><p><code>
URI: foo<br />
<br />
URI: foo.en.html<br />
Content-type: text/html<br />
Content-language: en<br />
<br />
URI: foo.fr.de.html<br />
Content-type: text/html;charset=iso-8859-2<br />
Content-language: fr, de<br />
</code></p></div>
<p>typemap ���� ��ϸ� Ȯ��� ����, ����� Multiviews��
����Ͽ���, �켱��� ������ ����϶�. ����� ���� �ٸ� ǰ����
�����ٸ�, ����� ���� (JPEG, GIF, ASCII-art�� �ش��ϴ�)
media type�� "qs" �Ķ���ͷ� ǰ��(source quality)�� ǥ����
�� �ִ�:</p>
<div class="example"><p><code>
URI: foo<br />
<br />
URI: foo.jpeg<br />
Content-type: image/jpeg; qs=0.8<br />
<br />
URI: foo.gif<br />
Content-type: image/gif; qs=0.5<br />
<br />
URI: foo.txt<br />
Content-type: text/plain; qs=0.01<br />
</code></p></div>
<p>qs ���� 0.000���� 1.000 ��̴�. qs ���� 0.000�� �����
���� ���õ�� ����� ����϶�. 'qs' ���� ���� ����� 1.0����
��ȴ�. qs ���� Ŭ��̾�Ʈ�� �ɷ°��� ������ �ٸ� �����
���Ͽ� �� ����� ����� 'ǰ��'�� ��Ÿ����. ���� ���,
���� ��Ÿ������ ��� JPEG ���� ASCII ��Ϻ��ٴ� ��
�� ǰ���� ������. ���� �ڿ��� ���� ASCII art���ٸ�
ASCII ǥ��� JPEG ǥ����� �� �� ǰ���� ���� �� �ִ�.
���Ƿ� � ����� qs ���� ǥ��Ϸ��� �ڿ��� ������
���� �ٸ���.</p>
<p>�����ϴ� ��� �� ���� <a href="mod/mod_negotiation.html#typemaps">mod_negotation
typemap</a> ������ ����϶�.</p>
<h3><a name="multiviews" id="multiviews">Multiviews</a></h3>
<p><code>MultiViews</code>�� ���丮�� �ɼ�̹Ƿ�,
<code>httpd.conf</code>��
<code class="directive"><a href="./mod/core.html#directory"><Directory></a></code>,
<code class="directive"><a href="./mod/core.html#location"><Location></a></code>,
<code class="directive"><a href="./mod/core.html#files"><Files></a></code>
���� Ȥ�� (<code class="directive"><a href="./mod/core.html#allowoverride">AllowOverride</a></code>��
����� �����Ǿ��ٸ�) <code>.htaccess</code> ����
<code class="directive"><a href="./mod/core.html#options">Options</a></code> ���þ ������
�� �ִ�. <code>Options All</code>�� <code>MultiViews</code>��
����������� ����϶�. ���� ���� ���� �Ѵ�.</p>
<p><code>MultiViews</code>�� ����ϸ� ����� ���� ��� �Ͼ��:
������ <code>/some/dir/foo</code>�� ���� ��û�� �ް�
<code>/some/dir/foo</code>�� <code>MultiViews</code>�� �����ϸ�
<code>/some/dir/foo</code>�� ������� <em>���</em> ���,
������ ���丮���� �̸��� foo.*�� ��ϵ� ��� ����ϴ�
����� type map�� �����. Ŭ��̾�Ʈ�� ��û�� media type��
content-encoding�� ������ ��߿� ���� ������ ��� �����Ѵ�.</p>
<p><code>MultiViews</code>�� ������ ���丮�� ����Ҷ�
���� ã�� <code class="directive"><a href="./mod/mod_dir.html#directoryindex">DirectoryIndex</a></code> ���þ��
����ȴ�. �������� ����� ���ٸ�,</p>
<div class="example"><p><code>DirectoryIndex index</code></p></div>
<p><code>index.html</code>�� <code>index.html3</code>��
��� �ִٸ� ������ �̵� �߿� �ϳ��� ���Ѵ�. �� ��� ����
<code>index.cgi</code>�� �ִٸ�, ������ �װ�� �����Ѵ�.</p>
<p>���丮�� ����� ���� �ϳ��� Charset, Content-Type,
Language, Encoding�� �Ǵ��ϴ� <code>mod_mime</code>�� ��
Ȯ��ڸ� �����ٸ�, ���� <code class="directive"><a href="./mod/mod_mime.html#multiviewsmatch">MultiViewsMatch</a></code> ���þ� ������
�Ǵ�. �� ���þ�� �ڵ鷯, ����, �ٸ� Ȯ������ MultiViews
��� ������ ���θ� ���Ѵ�.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section">
<h2><a name="methods" id="methods">����</a></h2>
<p>����ġ�� type-map ���̳� ���丮�� �ִ� ��ϸ���
�־� �ڿ��� ���� ��� ���� ��ԵǸ� '�����' �����
���ϱ��� �� ���� �ϳ��� ����Ѵ�. ����ġ �������
���� ����ϱ��� ��Ȯ� ���� ��� �Ͼ��� �ڼ��
�� �ʿ�� ����. ���� �ñ��� ���� ���� �� ���� �����Ѵ�.</p>
<p>�ΰ��� ������ �ִ�:</p>
<ol>
<li><strong>����ġ �˰��� ����Ͽ� ������ �ֵ��ϴ�
���</strong>�� �Ϲ���� ��쿡 ����Ѵ�. ����ġ �˰���
�Ʒ��� �ڼ�� �����Ѵ�. �� �˰��� ����ϸ� ����ġ��
�� ���� ���� ����� ���� Ư�� ������
ǰ����(quality factor)�� '�����Ѵ�'. ����ġ�� ǰ������
�����ϴ� ���� �Ʒ��� �ڼ�� �����Ѵ�.</li>
<li><strong>�ڿ�������(Transparent) �������</strong>��
������ RFC 2295�� ���ǵ� ������ ��û�� ��쿡��
����Ѵ�. �� ������ '�����' ����� ���� �����
�������� �ο��Ѵ�. ���� ���� ������ �˰���
�ȴ�. �ڿ������� �����߿� ������ ����ġ����
RFC 2296�� ���ǵ� '���� ������� �˰���(remote variant
selection algorithm)'�� ��û�� �� �ִ�.</li>
</ol>
<h3><a name="dimensions" id="dimensions">���� ����</a></h3>
<table>
<tr valign="top">
<th>����</th>
<th>����</th>
</tr>
<tr valign="top">
<td>Media Type</td>
<td>������ <code>Accept</code> ���� ��ȣ�� ��Ÿ����.
�� �� ǰ������ ���� �� �ִ�. ����� ���� ǰ������
("qs" �Ķ����) ���� �� �ִ�.</td>
</tr>
<tr valign="top">
<td>Language</td>
<td>������ <code>Accept-Language</code> ���� ��ȣ��
��Ÿ����. �� �� ǰ������ ���� �� �ִ�. �����
���� �� ���� (Ȥ�� �ƹ� �� ����) �� �ִ�.</td>
</tr>
<tr valign="top">
<td>Encoding</td>
<td>������ <code>Accept-Encoding</code> ���� ��ȣ��
��Ÿ����. �� �� ǰ������ ���� �� �ִ�.</td>
</tr>
<tr valign="top">
<td>Charset</td>
<td>������ <code>Accept-Charset</code> ���� ��ȣ��
��Ÿ����. �� �� ǰ������ ���� �� �ִ�. �����
media type�� �Ķ���ͷ� �������� ��Ÿ�� �� �ִ�.</td>
</tr>
</table>
<h3><a name="algorithm" id="algorithm">����ġ ��� �˰���</a></h3>
<p>����ġ�� �������� ���� '�����' ����� (�ִٸ�)
�����ϱ��� �Ʒ� �˰��� ����Ѵ�. �� �˰��� ������
�� ����. ����� ���� �����Ѵ�:</p>
<ol>
<li>���, ���� �� ������ ���� �ش��ϴ� <em>Accept*</em>
���� �˻��ϰ�, �� ����� ǰ������ �ű��. � ������
<em>Accept*</em> ���� �Ƶ��� �ʴ� ����� �ĺ�����
�����Ѵ�. � ����� ��������� 4 �ܰ�� ����.</li>
<li>
�ĺ����� �ϳ��� �����Ͽ� '�����' ����� ã�´�. ���
�� �˻�� ������� �Ͼ��. �� �˻翡�� ���õ�����
����� ���ܵȴ�. �� �˻��� �� ����� ������ �̸� �����
������� �����ϰ� 3 �ܰ�� ����. ���� ����� ������
��� �˻縦 �����Ѵ�.
<ol>
<li><code>Accept</code> ���� ǰ������ �����
media type�� ���� ǰ������ ���Ͽ� ���� �� ����
���� ����� �����Ѵ�.</li>
<li>���� �� ���(language) ǰ������ ���� �����
�����Ѵ�.</li>
<li><code>Accept-Language</code> ���� (�ִٸ�)
���� ���� ���� Ȥ�� <code>LanguagePriority</code>
���þ (�ִٸ�) ���� ���� ������ ������ ����
������ �� ���� ����� �����Ѵ�.</li>
<li>���� �� (text/html media type�� ������ ��Ÿ����)
'level' media �Ķ���� ���� ����� �����Ѵ�.</li>
<li><code>Accept-Charset</code> ���� ������ ����
������ charset media �Ķ���� ���� ����� ã�´�.
���� ���ٸ� ISO-8859-1 �������� ���� ��ȣ�Ѵ�.
<code>text/*</code> media type�� �������� ��������
Ư�� ������հ� ��������� ����� ISO-8859-1��
�����Ѵ�.</li>
<li>ISO-8859-1�� <em>�ƴ�</em> charset media �Ķ����
���� ����� �����Ѵ�. �� ����� ���ٸ�, ��� ���
����� �����Ѵ�.</li>
<li>���� ������ ���ڵ��� ���� ����� �����Ѵ�.
user-agent�� ������ ���ڵ��� ���� ����� �ִٸ� ��
������� �����Ѵ�. �����ʰ� ���ڵ��� ����� ���ڵ��ȵ�
����� ���� �ִٸ� ���ڵ��ȵ� ������� �����Ѵ�. �����
��� ���ڵ��Ǿ��ų� ��� ���ڵ��ȵ� ��� ��� �����
�����Ѵ�.</li>
<li>content length�� ���� ���� ����� �����Ѵ�.</li>
<li>���� ��� ù���� ����� �����Ѵ�. �̴� type-map
���� �տ� ���ų�, ���丮���� ����� ��� ���
��ϸ� ASCII �ڵ� ������ �Ͽ� �տ� ������ ��̴�.</li>
</ol>
</li>
<li>��� �˰���� '�����' ����� �����ߴ�. �̰�� ������
������. HTTP ���� �� <code>Vary</code>�� ���� ������
��Ÿ���� �ȴ�. (������ ij���� �ڿ��� ij���Ҷ� �� ������
����� �� �ִ�.) ��.</li>
<li>�� �ܰ迡 �����ߴٸ� (��� ������ ������ϱ� ������)
� ����� ����� �ȵ� ����. ("No acceptable
representation"�� ���ϴ�) ���� 406�� ������ ��밡����
����� ���� �� HTML ������ ���� ������. ��, HTML
<code>Vary</code> ���� ����� ������ ��Ÿ����.</li>
</ol>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section">
<h2><a name="better" id="better">ǰ���� �����ϱ�</a></h2>
<p>����ġ�� ���� ���� ����ġ ��� �˰��� ����� ��Ű���ʰ�
ǰ������ �����Ѵ�. ����� ����ϰ� ��Ȯ�� ������ �������ʴ�
�������� (�˰����) �� ���� ���� ������ ���ؼ���.
�θ� ���̴� ������ �Ϻδ� ��� �߸��� ����� �����ϵ���
<code>Accept</code> ���� ������. ������ ����ϰ� �ùٸ�
������ �����ٸ�, ����� ����ʴ´�.</p>
<h3><a name="wildcards" id="wildcards">Media Type�� ��ϵ�ī��</a></h3>
<p><code>Accept:</code> ��û ���� media type�� ���� ��ȣ��
��Ÿ����. ��, *�� � ���ڿ��̶� �����ϱ���� "image/*"��
"*/*" ���� '��ϵ�ī��' media type�� ����� ���� �ִ�. ����
����� ���� ��û��:</p>
<div class="example"><p><code>Accept: image/*, */*</code></p></div>
<p>"image/"�� ����ϴ� � type�� �ٸ� � type�� �������
�ǹ��Ѵ�. � ������
�ڽ�� ����� �ٷ� �� �ִ� type�� �߰��� ��ϵ�ī�带 ������.
���� ���:</p>
<div class="example"><p><code>
Accept: text/html, text/plain, image/gif, image/jpeg, */*
</code></p></div>
<p>����� ���� ������ type�� ��ȣ����� �ٸ� ǥ��� �ִٸ�
�װ͵� ������� ��Ÿ���� ���ؼ���. ������ ����� ����
��� ����� ���� �������� ǰ������ ����� ��̴�.</p>
<div class="example"><p><code>
Accept: text/html, text/plain, image/gif, image/jpeg, */*; q=0.01
</code></p></div>
<p>���� ������ type�� ǰ������ ��� �⺻���� (���� ��)
1.0�� ������. ��ϵ�ī�� */*�� ���� ��ȣ�� 0.01�� �����Ƿ�
���� ������ type�� �´� ����� ���� ��쿡�� �ٸ� type���
���ȴ�.</p>
<p><code>Accept:</code> ���� q ���� ���� <em>����</em>
"*/*"�� �ִٸ�, ����ġ�� �ٶ����� �ൿ�� ���� q ������ 0.01��
�����Ѵ�. ��, "type/*" ���� ��ϵ�ī�忡�� ("*/*"���ٴ�
�� ��ȣ�ϵ���) 0.02�� �����Ѵ�. <code>Accept:</code> ������
q ���� ������ media type�� �ִٸ� �̷� Ư���� ���� �߰����
<em>�ʴ´�</em>. ���� ������ ������ ������ ������
��û�� ��û�ѵ��� ó���Ѵ�.</p>
<h3><a name="exceptions" id="exceptions">���(language) ���� ����</a></h3>
<p>����ġ 2.0�� ��� ���� ������ ��� �ε巴�� �����ϱ���
��� �˰��� ���� ���ܸ� � �߰��ߴ�.</p>
<p>Ŭ��̾�Ʈ�� ������ ������ ��û����� ������ ������
���� <code>Accept-language</code>�� �´� ������ �� �Ѱ���
ã���� ������ ������, ���� ��� ��� ������ Ŭ��̾�Ʈ����
"No Acceptable Variant"�� "Multiple Choices" ���� ������.
�̷� �������� ���ϱ��� �� ��� <code>Accept-language</code>��
�����ϰ� Ŭ��̾�Ʈ�� ��û�� ��Ȯ� ����� ����� ������
�������� ����ġ�� ������ �� �ִ�. <code class="directive"><a href="./mod/mod_negotiation.html#forcelanguagepriority">ForceLanguagePriority</a></code>
���þ�� ������ �̷� �������� �ϳ� Ȥ�� �Ѵٸ� �����ϰ�
<code class="directive"><a href="./mod/mod_negotiation.html#languagepriority">LanguagePriority</a></code>
���þ�� �Ǵ��ϵ��� �Ѵ�.</p>
<p>��, ������ �´� �� ��ã�� ��� �θ�� ã�� ����
�ִ�. ���� ��� Ŭ��̾�Ʈ�� ������� ���ϴ�
<code>en-GB</code> ���� ������ ��û�� ���, HTTP/1.1 ǥ�ؿ�
������ ������ <code>en</code>���θ� ǥ�õ� ������ �Ϲ������
������� ���Ѵ�. (���� ������� �����ϴ� ���ڰ� �Ϲ����
��� ������ �� ����Ƿ� <code>Accept-Language</code> ����
<code>en-GB</code>�� ����ϰ� <code>en</code>�� �����������
��� Ȯ��� �߸��� ������� �����϶�. ������� ��� ����
Ŭ��̾�Ʈ�� �̷� ����� �⺻������ִ�.) �ٸ� ��
ã�� ���Ͽ� ������ "No Acceptable Variants" ������ �����ų�
<code class="directive"><a href="./mod/mod_negotiation.html#languagepriority">LanguagePriority</a></code>��
���ư��� �Ѵٸ�, ������ ������ �Ծ� �����ϰ�
<code>en-GB</code>�� <code>en</code> ������ ���Ѵ�.
�Ϲ������� ����ġ�� �θ�� �ſ� ���� ǰ��������
Ŭ��̾�Ʈ�� ����� ��Ͽ� �߰��Ѵ�. ���� Ŭ��̾�Ʈ��
"en-GB; q=0.9, fr; q=0.8"�� ��û�ϰ� ������ "en"�� "fr"
������ �ִٸ�, "fr" ������ ���õ�� ����϶�. �̴� HTTP/1.1
ǥ��� ��Ű��, �ùٷ� ������ Ŭ��̾�Ʈ�� ȿ��������
�����ϱ���̴�.</p>
<p>���ڰ� ��ȣ�ϴ� �� �˾Ƴ����� (��Ű�� Ư����
URL-��� ����) ��� ���� �����ϱ��� ����ġ 2.0.47����
<code class="module"><a href="./mod/mod_negotiation.html">mod_negotiation</a></code>�� <code>prefer-language</code>���
<a href="env.html">ȯ�溯��</a>�� �ν��Ѵ�. �� ȯ�溯����
�����ϰ� ������ ����±� ����Ѵٸ�,
<code class="module"><a href="./mod/mod_negotiation.html">mod_negotiation</a></code>�� �ش��ϴ� ����� �����Ϸ���
�õ��Ѵ�. �� ����� ���ٸ� �Ϲ���� ������ ����Ѵ�.</p>
<div class="example"><h3>����</h3><p><code>
SetEnvIf Cookie "language=(.+)" prefer-language=$1
</code></p></div>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section">
<h2><a name="extensions" id="extensions">�ڿ�������(transparent) �������� Ȯ��</a></h2>
<p>����ġ�� ����� ���� �ڿ������� ����Ȯ�� �������� (RFC 2295)
Ȯ���Ѵ�. ��� ���� ���ο� <code>{encoding ..}</code>�� Ư��
content-encoding�� ���� ������� ��Ī�Ѵ�. RVSA/1.0 �˰���
(RFC 2296) ��Ͽ��� ���ڵ��� ����� �ν��� �� �ְ�, ���ڵ���
<code>Accept-Encoding</code> ��û ���� �´� ��� ���ڵ���
����鵵 �ĺ��� ����ϵ��� Ȯ��Ǿ���. RVSA/1.0 ����� �����
����� ã�� ���� ���� ǰ������ �Ҽ��� 5�ڸ����� �ݿø����
�ʴ´�.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section">
<h2><a name="naming" id="naming">����۸�ũ�� �̸���Ģ�� ���Ͽ�</a></h2>
<p>���(language) ��� ����Ѵٸ� ���� ���� Ȯ��ڸ�
������ Ȯ���� ������ ���� �������Ƿ� ��ϸ� ���� �ٸ�
�̸���Ģ�� ����� �� �ִ�. (�ڼ��� ���� <a href="mod/mod_mime.html#multipleext">mod_mime</a> ������
����϶�.)</p>
<p>������� ���� MIME-type Ȯ��� (<em>���� ���</em>,
<code>html</code>), ��쿡 ���� encoding Ȯ��� (<em>����
���</em>, <code>gz</code>), ��Ͽ� ���� ��� ����� �ִ�
��� ���� ��� Ȯ��ڸ� (<em>���� ���</em>, <code>en</code>)
������.</p>
<p>����:</p>
<ul>
<li>foo.en.html</li>
<li>foo.html.en</li>
<li>foo.en.html.gz</li>
</ul>
<p>����� ��� ��ϸ� �� ��Ͽ� ���� ��ȿ�ϰ� ��ȿ������
����۸�ũ�� ���δ�:</p>
<table class="bordered">
<tr>
<th>��ϸ�</th>
<th>��ȿ�� ����۸�ũ</th>
<th>��ȿ������ ����۸�ũ</th>
</tr>
<tr>
<td><em>foo.html.en</em></td>
<td>foo<br />
foo.html</td>
<td>-</td>
</tr>
<tr>
<td><em>foo.en.html</em></td>
<td>foo</td>
<td>foo.html</td>
</tr>
<tr>
<td><em>foo.html.en.gz</em></td>
<td>foo<br />
foo.html</td>
<td>foo.gz<br />
foo.html.gz</td>
</tr>
<tr>
<td><em>foo.en.html.gz</em></td>
<td>foo</td>
<td>foo.html<br />
foo.html.gz<br />
foo.gz</td>
</tr>
<tr>
<td><em>foo.gz.html.en</em></td>
<td>foo<br />
foo.gz<br />
foo.gz.html</td>
<td>foo.html</td>
</tr>
<tr>
<td><em>foo.html.gz.en</em></td>
<td>foo<br />
foo.html<br />
foo.html.gz</td>
<td>foo.gz</td>
</tr>
</table>
<p>�� ǥ�� ���� ����۸�ũ�� � Ȯ��ڵ� ���� �̸���
(<em>���� ���</em>, <code>foo</code>) �� ����� �� �����
�� �� �ִ�. �� ��� ���� ������ ��� ������ ���� �� �־,
<em>���� ���</em> ��̷���ũ ����� �����Ͼʰ�
<code>html</code> ���� <code>shtml</code>�̳�
<code>cgi</code>�� ������ �� �ִٴ� ���̴�.</p>
<p>��� ����۸�ũ�� MIME-type�� (<em>���� ���</em>,
<code>foo.html</code>) ����ϰ� �ʹٸ� (encoding Ȯ��ڰ�
�ִٸ� �̰͵� ����Ͽ�) ��� Ȯ��ڸ� MIME-type Ȯ��ں���
�����ʿ� (<em>���� ���</em>, <code>foo.html.en</code>)
�ξ���Ѵ�.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
<div class="section">
<h2><a name="caching" id="caching">ij���� ���Ͽ�</a></h2>
<p>ij���� ǥ��� �����ϸ� ǥ��� ��û URL�� ������Ų��.
����� �� URL�� ��û�ϸ� ij���� ����� ǥ��� ����Ѵ�.
���� ������ ���� ������ �ڿ��� ��� ù��° ��û�� �����
ij���Ǿ� ���� ��û�� ij���� �߸��� ���� �� �� �ִ�.
�̸� ������ ����ġ�� ���� ��������� ��ȯ�Ǵ� ��� ��û��
HTTP/1.0 Ŭ��̾�Ʈ�� ij���� ���ϵ��� ǥ�ø� �Ѵ�. ��, ����ġ��
����� ����� ij���� ����ϴ� HTTP/1.1 �������� ����
�����Ѵ�.</p>
<p><code class="directive"><a href="./mod/mod_negotiation.html#cachenegotiateddocs">CacheNegotiatedDocs</a></code>
���þ�� HTTP/1.0 ȣȯ Ŭ��̾�Ʈ(���� Ȥ�� ij��)��
���� ��û�� ���� ����� ���� ij���� �� �ְ� �Ѵ�. �� ���þ��
������ ����ȣ��Ʈ ������ ����ϸ�, �ƱԸ�Ʈ�� ����ʴ´�.
�� ���þ�� HTTP/1.1 Ŭ��̾�Ʈ�� ��û���� ���谡 ����.</p>
<p>HTTP/1.1 Ŭ��̾�Ʈ���� ����ġ�� ����� ��� ������
�˷��ִ� <code>Vary</code> HTTP �������� ������. �� ������
����Ͽ� ��� ��û�� ij���� ���纻���� ��ü�� �� �ִ��
�Ǵ��� �� �ִ�. ���� ������ ������ ij���� ���纻��
���Ѵٸ� <code>force-no-vary</code> <a href="env.html#special">ȯ�溯��</a>�� �����Ѵ�.</p>
</div></div>
<div class="bottomlang">
<p><span>������ ���: </span><a href="./en/content-negotiation.html" hreflang="en" rel="alternate" title="English"> en </a> |
<a href="./fr/content-negotiation.html" hreflang="fr" rel="alternate" title="Français"> fr </a> |
<a href="./ja/content-negotiation.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
<a href="./ko/content-negotiation.html" title="Korean"> ko </a> |
<a href="./tr/content-negotiation.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p>
</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&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed 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 Libera.chat, or sent to our <a href="https://httpd.apache.org/lists.html">mailing lists</a>.</div>
<script type="text/javascript"><!--//--><![CDATA[//><!--
var comments_shortname = 'httpd';
var comments_identifier = 'http://httpd.apache.org/docs/2.4/content-negotiation.html';
(function(w, d) {
if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
d.write('<div id="comments_thread"><\/div>');
var s = d.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
(d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
}
else {
d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
}
})(window, document);
//--><!]]></script></div><div id="footer">
<p class="apache">Copyright 2024 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>
<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[//><!--
if (typeof(prettyPrint) !== 'undefined') {
prettyPrint();
}
//--><!]]></script>
</body></html>