blob: 23e15849561996d4dbf8609d30f0471514d1df32 [file] [log] [blame]
<?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: 105989:1421892 (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_version.xml.meta">
<name>mod_version</name>
<description>¹öÀüº° ¼³Á¤</description>
<status>Extension</status>
<sourcefile>mod_version.c</sourcefile>
<identifier>version_module</identifier>
<compatibility>¾ÆÆÄÄ¡ 2.1 ÀÌÈĺÎÅÍ</compatibility>
<summary>
<p>¿©·¯ ´Ù¸¥ À¥¼­¹ö ¹öÀü°ú ±¸¼ºÀ» ´Ù·ç¾î¾ß ÇÒ Å« ³×Æ®¿÷°ú
Å×½ºÆ®¿ëÀ¸·Î »ç¿ëÇϱâÀ§ÇØ ÀÌ ¸ðµâÀ» ¸¸µé¾ú´Ù. ÀÌ ¸ðµâÀº
¼ýÀÚ ºñ±³³ª Á¤±ÔÇ¥Çö½ÄÀ» »ç¿ëÇÏ¿© ÀÚÀ¯·Î¿î ¹öÀü °Ë»ç°¡ °¡´ÉÇÑ
<directive type="section" module="mod_version">IfVersion</directive>À»
Á¦°øÇÑ´Ù.</p>
<example><title>¿¹Á¦</title>
&lt;IfVersion 2.1.0&gt;<br />
<indent>
# ÇöÀç À¥¼­¹ö ¹öÀüÀº Á¤È®È÷ 2.1.0ÀÌ´Ù<br />
</indent>
&lt;/IfVersion&gt;<br />
<br />
&lt;IfVersion >= 2.2&gt;<br />
<indent>
# ÁøÂ¥ »õ·Î¿î ±â´ÉÀ» »ç¿ëÇÑ´Ù :-)<br />
</indent>
&lt;/IfVersion&gt;
</example>
<p>´Ù¸¥ »ç¿ë¹ýÀº ¾Æ·¡¸¦ Âü°íÇÑ´Ù.</p>
</summary>
<directivesynopsis type="section">
<name>IfVersion</name>
<description>¹öÀüº° ¼³Á¤À» ¹­´Â´Ù</description>
<syntax>&lt;IfVersion [[!]<var>operator</var>] <var>version</var>&gt; ...
&lt;/IfVersion&gt;</syntax>
<contextlist><context>server config</context><context>virtual host</context>
<context>directory</context><context>.htaccess</context></contextlist>
<override>All</override>
<usage>
<p><directive type="section">IfVersion</directive> ¼½¼ÇÀº
À¥¼­¹ö ¹öÀüÀÌ ¿øÇÏ´Â Á¶°ÇÀ» ¸¸Á·ÇÒ¶§¸¸ ½ÇÇàÇÒ ¼³Á¤ Áö½Ã¾î¸¦
¹­´Â´Ù. ÀϹÝÀûÀÎ (¼ýÀÚ) ºñ±³ÀÇ °æ¿ì <var>version</var> ¾Æ±Ô¸ÕÆ®´Â
<code>2.1.0</code>À̳ª <code>2.2</code>¿Í °°ÀÌ
<code><var>major</var>[.<var>minor</var>[.<var>patch</var>]]</code>
Çü½ÄÀÌ´Ù. <var>minor</var>¿Í <var>patch</var>´Â ¾ø¾îµµ µÈ´Ù.
ÀÌµé ¼ýÀÚ°¡ ¾ø´Ù¸é 0À̶ó°í °¡Á¤ÇÑ´Ù. ´ÙÀ½°ú °°Àº ¼ýÀÚ
<var>operator</var>°¡ °¡´ÉÇÏ´Ù.</p>
<table style="zebra" border="1">
<tr><th><var>operator</var></th><th>¼³¸í</th></tr>
<tr><td><code>=</code> ȤÀº <code>==</code></td>
<td>µ¿ÀÏÇÑ À¥¼­¹ö ¹öÀü</td></tr>
<tr><td><code>&gt;</code></td>
<td>º¸´Ù Å« À¥¼­¹ö ¹öÀü</td></tr>
<tr><td><code>&gt;=</code></td>
<td>Å©°Å³ª °°Àº À¥¼­¹ö ¹öÀü</td></tr>
<tr><td><code>&lt;</code></td>
<td>º¸´Ù ÀÛÀº À¥¼­¹ö ¹öÀü</td></tr>
<tr><td><code>&lt;=</code></td>
<td>À۰ųª °°Àº À¥¼­¹ö ¹öÀü</td></tr>
</table>
<example><title>¿¹Á¦</title>
&lt;IfVersion >= 2.1&gt;<br />
<indent>
# ¹öÀüÀÌ 2.1.0 º¸´Ù Å©°Å³ª °°À»¶§¸¸<br />
# ½ÇÇàÇÑ´Ù.<br />
</indent>
&lt;/IfVersion&gt;
</example>
<p>¼ýÀÚ ºñ±³¿Ü¿¡µµ Á¤±ÔÇ¥Çö½ÄÀ» »ç¿ëÇÏ¿© À¥¼­¹ö ¹öÀüÀ» ÁöÁ¤ÇÒ
¼ö ÀÖ´Ù. ¿©±â¿¡´Â µÎ°¡Áö ¹æ¹ýÀÌ ÀÖ´Ù.</p>
<table style="zebra" border="1">
<tr><th><var>operator</var></th><th>¼³¸í</th></tr>
<tr><td><code>=</code> ȤÀº <code>==</code></td>
<td><var>version</var>˼
<code>/<var>regex</var>/</code> Çü½ÄÀÌ´Ù</td></tr>
<tr><td><code>~</code></td>
<td><var>version</var>˼
<code><var>regex</var></code> Çü½ÄÀÌ´Ù</td></tr>
</table>
<example><title>¿¹Á¦</title>
&lt;IfVersion = /^2.1.[01234]$/&gt;<br />
<indent>
# ¿¹¸¦ µé¾î, ¿©±â¿¡ ¹ö±×°¡ Àִ ƯÁ¤ ¹öÀü¿¡ ´ëÇÑ ÇØ°áÃ¥ÀÌ ³ª¿Â´Ù
</indent>
&lt;/IfVersion&gt;
</example>
<p>¿¬»êÀÚ ¾Õ¿¡ ´À³¦Ç¥(<code>!</code>)¸¦ ¾²¸é Àǹ̸¦ ¹Ý´ë·Î
Çؼ®ÇÑ´Ù.</p>
<example>
&lt;IfVersion !~ ^2.1.[01234]$&gt;<br />
<indent>
# ÀÌ ¹öÀüÀÌ ¾Æ´Ï¸é<br />
</indent>
&lt;/IfVersion&gt;
</example>
<p><var>operator</var>¸¦ »ý·«Çϸé <code>=</code>À̶ó°í
»ý°¢ÇÑ´Ù.</p>
</usage>
</directivesynopsis>
</modulesynopsis>