<?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>mod_headers - 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> <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> > <a href="./">���</a></div> <div id="page-content"> <div id="preamble"><h1>����ġ ��� mod_headers</h1> <div class="toplang"> <p><span>������ ���: </span><a href="../en/mod/mod_headers.html" hreflang="en" rel="alternate" title="English"> en </a> | <a href="../fr/mod/mod_headers.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | <a href="../ja/mod/mod_headers.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | <a href="../ko/mod/mod_headers.html" title="Korean"> ko </a></p> </div> <div class="outofdate">�� ������ �ֽ��� ������ �ƴմϴ�. �ֱٿ� ����� ������ ���� ������ �����ϼ���.</div> <table class="module"><tr><th><a href="module-dict.html#Description">����:</a></th><td>HTTP ��û ����� ���� ��� ����</td></tr> <tr><th><a href="module-dict.html#Status">����:</a></th><td>Extension</td></tr> <tr><th><a href="module-dict.html#ModuleIdentifier">����:</a></th><td>headers_module</td></tr> <tr><th><a href="module-dict.html#SourceFile">�ҽ�����:</a></th><td>mod_headers.c</td></tr> <tr><th><a href="module-dict.html#Compatibility">����:</a></th><td><code class="directive"><a href="#requestheader">RequestHeader</a></code>�� ����ġ 2.0���� �ִ�</td></tr></table> <h3>���</h3> <p>�� ����� HTTP ��û ����� ���� ����� �����ϰ� �����ϴ� ���þ���� �����Ѵ�. ����� ��ġ�ų� ��ü, ������ �� �ִ�.</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><h3>����</h3> <ul id="topics"> <li><img alt="" src="../images/down.gif" /> <a href="#order">ó�� ����</a></li> <li><img alt="" src="../images/down.gif" /> <a href="#early">�̸�(early) ó���� ����(late) ó��</a></li> <li><img alt="" src="../images/down.gif" /> <a href="#examples">����</a></li> </ul><h3 class="directives">���þ��</h3> <ul id="toc"> <li><img alt="" src="../images/down.gif" /> <a href="#header">Header</a></li> <li><img alt="" src="../images/down.gif" /> <a href="#requestheader">RequestHeader</a></li> </ul> <h3>Bugfix checklist</h3><ul class="seealso"><li><a href="https://www.apache.org/dist/httpd/CHANGES_2.4">httpd changelog</a></li><li><a href="https://bz.apache.org/bugzilla/buglist.cgi?bug_status=__open__&list_id=144532&product=Apache%20httpd-2&query_format=specific&order=changeddate%20DESC%2Cpriority%2Cbug_severity&component=mod_headers">Known issues</a></li><li><a href="https://bz.apache.org/bugzilla/enter_bug.cgi?product=Apache%20httpd-2&component=mod_headers">Report a bug</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="order" id="order">ó�� ����</a></h2> <p><code class="module"><a href="../mod/mod_headers.html">mod_headers</a></code>�� �����ϴ� ���þ�� ���������� ���� ��� ��ҿ��� ����� �� ������, <a href="../sections.html">���� ����</a>���� ���μ� ���þ��� ������ ������ ���� �ִ�.</p> <p>ó�������� �߿��ϸ�, �������Ͽ� ���� ������ <a href="../sections.html#mergin">���� ����</a>�� ������ �´�. ���� �� ���þ �ݴ�� ������ ȿ���� ������.</p> <div class="example"><p><code> RequestHeader append MirrorID "mirror 12"<br /> RequestHeader unset MirrorID </code></p></div> <p>���� ���� ������ <code>MirrorID</code> ����� ������ �ʴ´�. �ݴ�� ������ MirrorID ����� "mirror 12"�� �����Ѵ�.</p> </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> <div class="section"> <h2><a name="early" id="early">�̸�(early) ó���� ����(late) ó��</a></h2> <p><code class="module"><a href="../mod/mod_headers.html">mod_headers</a></code>�� ��û �ʱ⳪ ���߿� ������ �� �ִ�. ������ ��������ڸ� �����ϱ� ������ ��û ����� �����ϰ� ������ ��Ʈ���� ���� ���� ����� �����ϴ� ����(late) ����� ����Ѵ�. ���� �����ϴ� ���������� �� ���� ����� ����϶�.</p> <p>�̸�(early) ����� �����ڸ� ���� �˻�/���������� �������. <code>early</code> Ű���带 ����Ͽ� ������ ���þ�� ��û�� ó���ϱ� �����Ҷ� �����Ѵ�. ��, �ٸ� ��û�� ���ǽ����ϰų� �˻縦 �ϱ����� ����� �� ������, ������ �����ϱ� ���� �ٸ� ����� �ҽÿ� ����� ������ �� �ִ�.</p> <p>��û��ο� ���� ������ ���캸�� ���� �̸� ���þ ó���ϱ���� �̸� ��� ���þ�� �ּ����̳� ����ȣ��Ʈ �����ҿ����� ����� �� �ִ�. �̸� ���þ�� ��û��ο� ������ �� ������� <code><Directory></code>�� <code><Location></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="examples" id="examples">����</a></h2> <ol> <li> "TS"�� �����ϴ� ��� ��û ����� ���� ����� �����Ѵ�. <div class="example"><p><code> Header echo ^TS </code></p></div> </li> <li> ���信 ��û�� ���� �ð��� ��û�� �����ϴµ� �ɸ� �ð��� �˷��ִ� <code>MyHeader</code> ����� �߰��Ѵ�. Ŭ���̾�Ʈ�� �� ����� ���� ������ ���ϸ� �����ϰų� Ŭ���̾�Ʈ�� �������� �������� ã�� �� �ִ�. <div class="example"><p><code> Header add MyHeader "%D %t" </code></p></div> <p>���信 ������ ���� ����� �����.</p> <div class="example"><p><code> MyHeader: D=3775428 t=991424704447256 </code></p></div> </li> <li> Joe���� �ȳ� <div class="example"><p><code> Header add MyHeader "Hello Joe. It took %D microseconds \<br /> for Apache to serve this request." </code></p></div> <p>���信 ������ ���� ����� �����.</p> <div class="example"><p><code> MyHeader: Hello Joe. It took D=3775428 microseconds for Apache to serve this request. </code></p></div> </li> <li> ��û�� "MyRequestHeader" ����� �ִ� ��쿡�� ���������� ���信 <code>MyHeader</code>�� ������. Ư�� Ŭ���̾�Ʈ���Ը� ���信 ����� �߰��Ҷ� �����ϴ�. �� ������ �����Ϸ��� <code class="module"><a href="../mod/mod_setenvif.html">mod_setenvif</a></code> ����� �ʿ��ϴ�. <div class="example"><p><code> SetEnvIf MyRequestHeader value HAVE_MyRequestHeader<br /> Header add MyHeader "%D %t mytext" env=HAVE_MyRequestHeader<br /> </code></p></div> <p>HTTP ��û�� <code>MyRequestHeader: value</code> ����� �ִٸ�, ���信 ������ ���� ����� �����.</p> <div class="example"><p><code> MyHeader: D=3775428 t=991424704447256 mytext </code></p></div> </li> </ol> </div> <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> <div class="directive-section"><h2><a name="Header" id="Header">Header</a> <a name="header" id="header">���þ�</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">����:</a></th><td>HTTP ���� ����� �����Ѵ�</td></tr> <tr><th><a href="directive-dict.html#Syntax">����:</a></th><td><code>Header [<var>condition</var>] set|append|add|unset|echo <var>header</var> [<var>value</var>] [early|env=[!]<var>variable</var>]</code></td></tr> <tr><th><a href="directive-dict.html#Context">������:</a></th><td>�ּ�������, ����ȣ��Ʈ, directory, .htaccess</td></tr> <tr><th><a href="directive-dict.html#Override">Override �ɼ�:</a></th><td>FileInfo</td></tr> <tr><th><a href="directive-dict.html#Status">����:</a></th><td>Extension</td></tr> <tr><th><a href="directive-dict.html#Module">���:</a></th><td>mod_headers</td></tr> </table> <p>�� ���þ�� HTTP ���� ����� ��ġ�ų� ��ü, �����Ѵ�. ���� �ڵ鷯�� ��� ���Ͱ� ������ ���Ŀ� ����� �����ϱ���� ���� ����� ������ �� �ִ�.</p> <p><var>condition</var>�� ���������� ����ϸ�, ������ <code>onsuccess</code> Ȥ�� <code>always</code>�� ����Ѵ�. �̴� � ���� ���ǥ�� ���������� �����Ѵ�. <code>onsuccess</code>�� <code>2<var>xx</var></code> �����ڵ带 ���ϰ�, <code>always</code>�� (<code>2<var>xx</var></code>�� ������) ��� �����ڵ带 ���Ѵ�. Ư�� � ����� ������ ����� �����ϰ� �ʹٸ�, ���� � ���� ������� �� ������� �Ѵ�.</p> <p>�ι�° �ƱԸ�Ʈ�� ���� ����� �ٸ���. �ι�° �ƱԸ�Ʈ�� �Ʒ� ���� �ϳ��� ����� �� �ִ�.</p> <dl> <dt><code>set</code></dt> <dd>���� ����� �����Ѵ�. ���� �̸����� �̹� ����� �ִٸ� ��ü�Ѵ�. <var>value</var>�� ���Ĺ��ڿ��� ����� �� �ִ�.</dd> <dt><code>append</code></dt> <dd>�̹� �����ϴ� ���� �̸��� ���� ����� �߰��Ѵ�. ���� ����� ���ο� ���� ��ġ��, ���� ����� ���ο� �� ���̿� ��ǥ�� ���δ�. �̴� ���� ������� �����ϴ� HTTP ǥ�� ����̴�.</dd> <dt><code>add</code></dt> <dd>����� �̹� �ִ��� ���� ����� �߰��Ѵ�. ���� ���� �̸��� ����� �ΰ� (Ȥ�� ����) ���� �� �ִ�. �� ��� �ǿ��� ����� ���� �� �ֱ���� ���� ��� <code>append</code>�� ����ؾ� �Ѵ�.</dd> <dt><code>unset</code></dt> <dd>�̷� �̸��� ���� ����� �ִٸ� �����Ѵ�. ���� �̸��� ���� ����� ������ �ִٸ� ��� �����Ѵ�. <var>value</var>�� ���� �ʴ´�.</dd> <dt><code>echo</code></dt> <dd>�̷� �̸��� ��û ����� �״�� ���� ����� ������. <var>header</var>�� ����ǥ������ ����� �� �ִ�. <var>value</var>�� ���� �ʴ´�.</dd> </dl> <p>�ƱԸ�Ʈ �ڿ� <var>header</var> �̸��� ���´�. ����� �ڿ� �ݷ��� ���� �� ������, ��� �ȴ�. <code>set</code>, <code>append</code>, <code>add</code>, <code>unset</code>���� ��ҹ��ڴ� �����Ѵ�. <code>echo</code>�� <var>header</var> �̸��� ������ڸ� �����ϰ� ����ǥ������ ����� �� �ִ�.</p> <p><code>add</code>, <code>append</code>, <code>set</code>�� ����Ҷ��� ����° �ƱԸ�Ʈ <var>value</var>�� �ʿ��ϴ�. <var>value</var> �ȿ� ������ �ִٸ� �ֵ���ǥ�� ����� �Ѵ�. <var>value</var>�� �Ϲ� ���ڿ��̳� ������ ����ϴ� ���ڿ��̸�, �ΰ����� ���� ����� ���� �ִ�. <var>value</var>���� �����ϴ� ���ı���ڴ� ������ ����.</p> <table class="bordered"><tr class="header"><th>����</th><th>����</th></tr> <tr><td><code>%%</code></td> <td>�ۼ�Ʈ ��ȣ</td></tr> <tr class="odd"><td><code>%t</code></td> <td>��û�� ���� �ð��� ����ǥ�ؽ÷� epoch (1970�� 1�� 1��) ���� ���� ����ũ���� ������. �� �տ� <code>t=</code>�� �ٴ´�.</td></tr> <tr><td><code>%D</code></td> <td>��û�� ���� �ð����� ����� ��Ʈ���� �������� �ɸ� �ð�. ��û�� �Ⱓ�� ���. �� �տ� <code>D=</code>�� �ٴ´�.</td></tr> <tr class="odd"><td><code>%{FOOBAR}e</code></td> <td><a href="../env.html">ȯ�溯��</a> <code>FOOBAR</code>�� ����.</td></tr> <tr><td><code>%{FOOBAR}s</code></td> <td><code class="module"><a href="../mod/mod_ssl.html">mod_ssl</a></code>�� �����Ѵٸ�, <a href="mod_ssl.html#envvars">SSL ȯ�溯��</a> <code>FOOBAR</code>�� ����.</td></tr> </table> <div class="note"><h3>����</h3> <p><code>%s</code> ���� �����ڴ� ����ġ 2.1 ���Ŀ��� �ִ�. �� �����ڴ� <code>SSLOptions +StdEnvVars</code>�� ����ϴ� �δ��� �������� <code>%e</code> ��� ����� �� �ִ�. � ���������� <code>SSLOptions +StdEnvVars</code>�� ����ؾ� �Ѵٸ�, <code>%e</code>�� <code>%s</code> ���� �ξ� �� ȿ�����̴�.</p> </div> <p><code class="directive">Header</code> ���þ� �ڿ� �ൿ�� �Ͼ ������ �����ϴ� �߰� �ƱԸ�Ʈ�� <a href="#early">�̸� ó��</a>�� ���ϴ� Ű���� <code>early</code>�� ���� �� �ִ�. <code>env=<var>...</var></code> �ƱԸ�Ʈ�� ����� ��� �ش� <a href="../env.html">ȯ�溯��</a>�� �����Ѵٸ� (Ȥ�� <code>env=!<var>...</var></code>�� ���� ȯ�溯���� �������� �ʴٸ�) <code class="directive">Header</code> ���þ �����Ѵ�. ���� ������ ���þ�� ��û�� �ƹ� ������ ��ġ�� �ʴ´�.</p> <p><a href="#early">�̸�</a> ����� �ƴ϶�� ������ ��Ʈ������ ������ ������ <code class="directive">Header</code> ���þ ó���Ѵ�. ���� ��� ���Ͱ� �߰��ϴ� ����� ������ ��κ��� ����� �����ϰų� ��� �� �ִ�.</p> </div> <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> <div class="directive-section"><h2><a name="RequestHeader" id="RequestHeader">RequestHeader</a> <a name="requestheader" id="requestheader">���þ�</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#Description">����:</a></th><td>HTTP ��û ����� �����Ѵ�</td></tr> <tr><th><a href="directive-dict.html#Syntax">����:</a></th><td><code>RequestHeader set|append|add|unset <var>header</var> [<var>value</var>] [early|env=[!]<var>variable</var>]</code></td></tr> <tr><th><a href="directive-dict.html#Context">������:</a></th><td>�ּ�������, ����ȣ��Ʈ, directory, .htaccess</td></tr> <tr><th><a href="directive-dict.html#Override">Override �ɼ�:</a></th><td>FileInfo</td></tr> <tr><th><a href="directive-dict.html#Status">����:</a></th><td>Extension</td></tr> <tr><th><a href="directive-dict.html#Module">���:</a></th><td>mod_headers</td></tr> </table> <p>�� ���þ�� HTTP ��û ����� ��ġ�ų� ��ü, �����Ѵ�. ���� �ڵ鷯�� �����ϱ� ������ ����� �����ϱ���� ���� ����� ������ �� �ִ�. ù��° �ƱԸ�Ʈ�� ���� ����� �ٸ���. ù��° �ƱԸ�Ʈ�� �Ʒ� ���� �ϳ��� ����� �� �ִ�.</p> <dl> <dt><code>set</code></dt> <dd>��û ����� �����Ѵ�. ���� �̸����� �̹� ����� �ִٸ� ��ü�Ѵ�</dd> <dt><code>append</code></dt> <dd>�̹� �����ϴ� ���� �̸��� ��û ����� �߰��Ѵ�. ���� ����� ���ο� ���� ��ġ��, ���� ����� ���ο� �� ���̿� ��ǥ�� ���δ�. �̴� ���� ������� �����ϴ� HTTP ǥ�� ����̴�.</dd> <dt><code>add</code></dt> <dd>����� �̹� �ִ��� ��û ����� �߰��Ѵ�. ���� ���� �̸��� ����� �ΰ� (Ȥ�� ����) ���� �� �ִ�. �� ��� �ǿ��� ����� ���� �� �ֱ���� ���� ��� <code>append</code>�� ����ؾ� �Ѵ�.</dd> <dt><code>unset</code></dt> <dd>�̷� �̸��� ��û ����� �ִٸ� �����Ѵ�. ���� �̸��� ���� ����� ������ �ִٸ� ��� �����Ѵ�. <var>value</var>�� ���� �ʴ´�.</dd> </dl> <p>�ƱԸ�Ʈ �ڿ� ������� ���´�. ����� �ڿ� �ݷ��� ���� �� ������, ��� �ȴ�. ��ҹ��ڴ� �����Ѵ�. <code>add</code>, <code>append</code>, <code>set</code>�� ����Ҷ��� ����° �ƱԸ�Ʈ <var>value</var>�� �ʿ��ϴ�. <var>value</var> �ȿ� ������ �ִٸ� �ֵ���ǥ�� ����� �Ѵ�. unset�� ����Ҷ��� <var>value</var>�� ������ �ȵȴ�. <var>value</var>�� �Ϲ� ���ڿ��̳� ������ ����ϴ� ���ڿ��̸�, �ΰ����� ���� ����� ���� �ִ�. �����ϴ� ���ı���ڴ� <code class="directive"><a href="#header">Header</a></code>�� �����Ƿ� �ڼ��� ������ �װ��� �����϶�.</p> <p><code class="directive">RequestHeader</code> ���þ� �ڿ� �ൿ�� �Ͼ ������ �����ϴ� �߰� �ƱԸ�Ʈ�� <a href="#early">�̸� ó��</a>�� ���ϴ� Ű���� <code>early</code>�� ���� �� �ִ�. <code>env=<var>...</var></code> �ƱԸ�Ʈ�� ����� ��� �ش� <a href="../env.html">ȯ�溯��</a>�� �����Ѵٸ� (Ȥ�� <code>env=!<var>...</var></code>�� ���� ȯ�溯���� �������� �ʴٸ�) <code class="directive">RequestHeader</code> ���þ �����Ѵ�. ���� ������ ���þ�� ��û�� �ƹ� ������ ��ġ�� �ʴ´�.</p> <p><a href="#early">�̸�</a> ����� �ƴ϶�� fixup �ܰ迡�� ��û�� �ش��ϴ� �ڵ鷯�� �����ϱ� ������ <code class="directive">RequestHeader</code> ���þ ó���Ѵ�. ���� �������� ���� Ȥ�� ����ġ �Է����Ͱ� ����� ����ų� ������ �� �ִ�.</p> </div> </div> <div class="bottomlang"> <p><span>������ ���: </span><a href="../en/mod/mod_headers.html" hreflang="en" rel="alternate" title="English"> en </a> | <a href="../fr/mod/mod_headers.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | <a href="../ja/mod/mod_headers.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | <a href="../ko/mod/mod_headers.html" title="Korean"> ko </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/mod/mod_headers.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>