mod_setenvif.xml.ko revision 9a367ec3d570bcbaf8923dad66cb3b1532963964
<?xml version="1.0" encoding="EUC-KR" ?>
<!DOCTYPE modulesynopsis SYSTEM "/style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="/style/manual.ko.xsl"?>
<!-- English Revision: 151408:1043126 (outdated) -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<modulesynopsis metafile="mod_setenvif.xml.meta">
<name>mod_setenvif</name>
<description>��û�� ���ݿ� ��� ȯ�溯�� ������ �����Ѵ�</description>
<status>Base</status>
<sourcefile>mod_setenvif.c</sourcefile>
<identifier>setenvif_module</identifier>
<summary>
<p><module>mod_setenvif</module> ����� ��û�� ������
����ǥ���Ŀ� �ش��ϴ��� ���η� ȯ�溯���� �����Ѵ�. ������
�ٸ� �κ��� �ൿ�� �����Ҷ� �� ȯ�溯���� ����� �� �ִ�.</p>
<p>�������Ͽ� ������ ���� ���þ ó���Ѵ�. �׷���
������ MSIE�� �ƴ϶� mozilla�� ��� <code>netscape</code>��
�����ϴ� �Ʒ� ���� ���� ���� ���þ �Բ� ����� �� �ִ�.</p>
<example>
BrowserMatch ^Mozilla netscape<br />
BrowserMatch MSIE !netscape<br />
</example>
</summary>
<seealso><a href="/env.html">����ġ�� ȯ�溯��</a></seealso>
<directivesynopsis>
<name>BrowserMatch</name>
<description>HTTP User-Agent�� ��� ȯ�溯���� �����Ѵ�</description>
<syntax>BrowserMatch <em>regex [!]env-variable</em>[=<em>value</em>]
[[!]<em>env-variable</em>[=<em>value</em>]] ...</syntax>
<contextlist><context>server config</context>
<context>virtual host</context><context>directory</context>
<context>.htaccess</context></contextlist>
<override>FileInfo</override>
<usage>
<p><directive>BrowserMatch</directive>�� <directive
module="mod_setenvif">SetEnvIf</directive> ���þ��� Ư����
����, HTTP ��û ��� <code>User-Agent</code>�� ��� ȯ�溯����
�����Ѵ�. ���� �� ���� ����:</p>
<example>
BrowserMatchNoCase Robot is_a_robot<br />
SetEnvIfNoCase User-Agent Robot is_a_robot<br />
</example>
<p>�߰� ����:</p>
<example>
BrowserMatch ^Mozilla forms jpeg=yes browser=netscape<br />
BrowserMatch "^Mozilla/[2-3]" tables agif frames javascript<br />
BrowserMatch MSIE !javascript<br />
</example>
</usage>
</directivesynopsis>
<directivesynopsis>
<name>BrowserMatchNoCase</name>
<description>��ҹ��ڸ� ���������ʰ� User-Agent�� ��� ȯ�溯����
�����Ѵ�</description>
<syntax>BrowserMatchNoCase <em>regex [!]env-variable</em>[=<em>value</em>]
[[!]<em>env-variable</em>[=<em>value</em>]] ...</syntax>
<contextlist><context>server config</context>
<context>virtual host</context><context>directory</context>
<context>.htaccess</context></contextlist>
<override>FileInfo</override>
<compatibility>����ġ 1.2 �̻� (����ġ 1.2���� �� ���þ�� ����
����� mod_browser ��⿡ �־��)</compatibility>
<usage>
<p><directive>BrowserMatchNoCase</directive> ���þ�� <directive
module="mod_setenvif">BrowserMatch</directive> ���þ��
�ǹ̻� ����. �׷��� �� ���þ�� ��ҹ��ڸ� ���������ʴ´�.
���� ���:</p>
<example>
BrowserMatchNoCase mac platform=macintosh<br />
BrowserMatchNoCase win platform=windows<br />
</example>
<p><directive>BrowserMatch</directive>��
<directive>BrowserMatchNoCase</directive> ���þ��
<directive module="mod_setenvif">SetEnvIf</directive>��
<directive module="mod_setenvif">SetEnvIfNoCase</directive>
���þ��� Ư���� ����. ���� �� ���� ����:</p>
<example>
BrowserMatchNoCase Robot is_a_robot<br />
SetEnvIfNoCase User-Agent Robot is_a_robot<br />
</example>
</usage>
</directivesynopsis>
<directivesynopsis>
<name>SetEnvIf</name>
<description>��û�� ���� ��� ȯ�溯���� �����Ѵ�</description>
<syntax>SetEnvIf <em>attribute
regex [!]env-variable</em>[=<em>value</em>]
[[!]<em>env-variable</em>[=<em>value</em>]] ...</syntax>
<contextlist><context>server config</context>
<context>virtual host</context><context>directory</context>
<context>.htaccess</context></contextlist>
<override>FileInfo</override>
<usage>
<p><directive>SetEnvIf</directive> ���þ�� ��û�� ����
��� ȯ�溯���� �����Ѵ�. ù��° �ƱԸ�Ʈ <em>attribute</em>��
���� �������� �ϳ���:</p>
<ol>
<li>HTTP ��û ��� (�� �ڼ��� ������ <a
href="http://www.rfc-editor.org/rfc/rfc2616.txt">RFC2616</a>
���); ���� ���: <code>Host</code>, <code>User-Agent</code>,
<code>Referer</code>, <code>Accept-Language</code>. ����ǥ������
����Ͽ� ���� ��û ����� ��Ī�� �� �ִ�.</li>
<li>��û�� ���� ������ �ϳ�:
<ul>
<li><code>Remote_Host</code> - (�ִٸ�) ��û�ϴ� Ŭ���̾�Ʈ��
ȣ��Ʈ��</li>
<li><code>Remote_Addr</code> - ��û�ϴ� Ŭ���̾�Ʈ�� IP �ּ�</li>
<li><code>Server_Addr</code> - ��û�� �޴� ������ IP �ּ�
(2.0.43 ���� ���Ŀ���)</li>
<li><code>Request_Method</code> - ����� �޽�� �̸�
(<code>GET</code>, <code>POST</code>, <em>���</em>)</li>
<li><code>Request_Protocol</code> - ��û�� �������� �̸���
���� (<em>���� ���</em>, "HTTP/0.9", "HTTP/1.1", <em>��.</em>)</li>
<li><code>Request_URI</code> - HTTP ��û���� ��û�� �ڿ�
-- �Ϲ������� URL���� ���ǹ��ڿ��� ������ ��Ŵ(scheme)��
ȣ��Ʈ ���� �κ�</li>
</ul>
</li>
<li>��û�� ����� ȯ�溯�� �̸�. �׷��� <directive>SetEnvIf</directive>
���þ�� ���� ���þ��� ��� �˻��� �� �ִ�. ����
<code>SetEnvIf[NoCase]</code> ���þ�� ������ ȯ�溯������
�˻��� �� �ִ�. '����'�̶� (������� ����) �� ���� ���� Ȥ��
���þ��� ���� ���� ������ ���Ѵ�. ��û ������ �ƴϰ� ����ǥ������
�ƴ� <em>attribute</em>�� ȯ�溯���� ����Ѵ�.</li>
</ol>
<p>�ι�° �ƱԸ�Ʈ�� (<em>regex</em>) <a
href="http://www.pcre.org/">Perl ȣȯ ����ǥ����</a>�̴�.
�̴� POSIX.2 egrep�� ����ǥ���İ� ����ϴ�. <em>regex</em>��
<em>attribute</em>�� �����ϸ� ������ �ƱԸ�Ʈ�� ó���Ѵ�.</p>
<p>������ �ƱԸ�Ʈ�� ������ ������� (��������) ���������̴�.
������ ���� ����̴�</p>
<ol>
<li><code><em>varname</em></code>, Ȥ��</li>
<li><code>!<em>varname</em></code>, Ȥ��</li>
<li><code><em>varname</em>=<em>value</em></code></li>
</ol>
<p>ù��° ���´� ������ "1"�� ����Ѵ�. �ι�° ���´� ������
�̹� ���ǵ� ��� ������ �����ϰ�, ����°�� ������ ������
<code><em>value</em></code>�� �����Ѵ�. ����ġ 2.0.51����
<var>value</var>�� �ִ� <code>$1</code>..<code>$9</code>��
<var>regex</var>�� ��ȣģ ����ǥ�������� ��ü�Ѵ�.</p>
<example>
<title>����:</title>
SetEnvIf Request_URI "\.gif$" object_is_image=gif<br />
SetEnvIf Request_URI "\.jpg$" object_is_image=jpg<br />
SetEnvIf Request_URI "\.xbm$" object_is_image=xbm<br />
:<br />
SetEnvIf Referer www\.mydomain\.com intra_site_referral<br />
:<br />
SetEnvIf object_is_image xbm XBIT_PROCESSING=1<br />
:<br />
SetEnvIf ^TS* ^[a-z].* HAVE_TS<br />
</example>
<p>ó�� �� ���� �̹��� ������ ��û�� ��� ȯ�溯��
<code>object_is_image</code>�� �����Ѵ�. �׹�° ���� ��������
<code>www.mydomain.com</code> ������Ʈ���� ������ ���
<code>intra_site_referral</code>�� �����Ѵ�.</p>
<p>������ ���� ��û�� �̸��� "TS"�� �����ϰ� ���� [a-z]
�� �ϳ��� �����ϴ� ����� �ִ� ��� ȯ�溯��
<code>HAVE_TS</code>�� �����Ѵ�.</p>
</usage>
<seealso><a href="/env.html">����ġ�� ȯ�溯��</a>�� �� ����
������ �ִ�.
</seealso>
</directivesynopsis>
<directivesynopsis>
<name>SetEnvIfExpr</name>
<description>Sets environment variables based on an ap_expr expression</description>
<contextlist><context>server config</context><context>virtual host</context><context>directory</context><context>.htaccess</context></contextlist>
<usage><p>Documentation not yet translated. Please see English version of document.</p></usage>
</directivesynopsis>
<directivesynopsis>
<name>SetEnvIfNoCase</name>
<description>��ҹ��ڸ� ���������ʰ� ��û�� ���� ��� ȯ�溯����
�����Ѵ�</description>
<syntax>SetEnvIfNoCase <em>attribute regex
[!]env-variable</em>[=<em>value</em>]
[[!]<em>env-variable</em>[=<em>value</em>]] ...</syntax>
<contextlist><context>server config</context>
<context>virtual host</context><context>directory</context>
<context>.htaccess</context></contextlist>
<override>FileInfo</override>
<compatibility>����ġ 1.3 ����</compatibility>
<usage>
<p><directive>SetEnvIfNoCase</directive>�� �ǹ̻� <directive
module="mod_setenvif">SetEnvIf</directive> ���þ�� ������,
��ҹ��ڸ� ���������ʰ� ����ǥ������ ã�´�. ���� ���:</p>
<example>
SetEnvIfNoCase Host Apache\.Org site=apache
</example>
<p>�� ��� HTTP ��û ��� <code>Host:</code>��
<code>Apache.Org</code>, <code>apache.org</code> ���� �����ϸ�
<code>site</code> ȯ�溯���� "<code>apache</code>"�� �����Ѵ�.</p>
</usage>
</directivesynopsis>
</modulesynopsis>