1 <?xml version="1.0" encoding="EUC-KR" ?>
2 <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
3 <?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
4 <!-- English Revision: 105989:1421821 (outdated) -->
7 Licensed to the Apache Software Foundation (ASF) under one or more
8 contributor license agreements. See the NOTICE file distributed with
9 this work for additional information regarding copyright ownership.
10 The ASF licenses this file to You under the Apache License, Version 2.0
11 (the "License"); you may not use this file except in compliance with
12 the License. You may obtain a copy of the License at
14 http://www.apache.org/licenses/LICENSE-2.0
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
23 <modulesynopsis metafile="mod_version.xml.meta">
24 <name>mod_version</name>
25 <description>¹öÀüº° ¼³Á¤</description>
26 <status>Extension</status>
27 <sourcefile>mod_version.c</sourcefile>
28 <identifier>version_module</identifier>
29 <compatibility>¾ÆÆÄÄ¡ 2.1 ÀÌÈĺÎÅÍ</compatibility>
32 <p>¿©·¯ ´Ù¸¥ À¥¼¹ö ¹öÀü°ú ±¸¼ºÀ» ´Ù·ç¾î¾ß ÇÒ Å« ³×Æ®¿÷°ú
33 Å×½ºÆ®¿ëÀ¸·Î »ç¿ëÇϱâÀ§ÇØ ÀÌ ¸ðµâÀ» ¸¸µé¾ú´Ù. ÀÌ ¸ðµâÀº
34 ¼ýÀÚ ºñ±³³ª Á¤±ÔÇ¥Çö½ÄÀ» »ç¿ëÇÏ¿© ÀÚÀ¯·Î¿î ¹öÀü °Ë»ç°¡ °¡´ÉÇÑ
35 <directive type="section" module="mod_version">IfVersion</directive>À»
38 <example><title>¿¹Á¦</title>
39 <IfVersion 2.1.0><br />
41 # ÇöÀç À¥¼¹ö ¹öÀüÀº Á¤È®È÷ 2.1.0ÀÌ´Ù<br />
43 </IfVersion><br />
45 <IfVersion >= 2.2><br />
47 # ÁøÂ¥ »õ·Î¿î ±â´ÉÀ» »ç¿ëÇÑ´Ù :-)<br />
52 <p>´Ù¸¥ »ç¿ë¹ýÀº ¾Æ·¡¸¦ Âü°íÇÑ´Ù.</p>
55 <directivesynopsis type="section">
56 <name>IfVersion</name>
57 <description>¹öÀüº° ¼³Á¤À» ¹´Â´Ù</description>
58 <syntax><IfVersion [[!]<var>operator</var>] <var>version</var>> ...
59 </IfVersion></syntax>
60 <contextlist><context>server config</context><context>virtual host</context>
61 <context>directory</context><context>.htaccess</context></contextlist>
62 <override>All</override>
65 <p><directive type="section">IfVersion</directive> ¼½¼ÇÀº
66 À¥¼¹ö ¹öÀüÀÌ ¿øÇÏ´Â Á¶°ÇÀ» ¸¸Á·ÇÒ¶§¸¸ ½ÇÇàÇÒ ¼³Á¤ Áö½Ã¾î¸¦
67 ¹´Â´Ù. ÀϹÝÀûÀÎ (¼ýÀÚ) ºñ±³ÀÇ °æ¿ì <var>version</var> ¾Æ±Ô¸ÕÆ®´Â
68 <code>2.1.0</code>À̳ª <code>2.2</code>¿Í °°ÀÌ
69 <code><var>major</var>[.<var>minor</var>[.<var>patch</var>]]</code>
70 Çü½ÄÀÌ´Ù. <var>minor</var>¿Í <var>patch</var>´Â ¾ø¾îµµ µÈ´Ù.
71 ÀÌµé ¼ýÀÚ°¡ ¾ø´Ù¸é 0À̶ó°í °¡Á¤ÇÑ´Ù. ´ÙÀ½°ú °°Àº ¼ýÀÚ
72 <var>operator</var>°¡ °¡´ÉÇÏ´Ù.</p>
74 <table style="zebra" border="1">
75 <tr><th><var>operator</var></th><th>¼³¸í</th></tr>
76 <tr><td><code>=</code> ȤÀº <code>==</code></td>
77 <td>µ¿ÀÏÇÑ À¥¼¹ö ¹öÀü</td></tr>
78 <tr><td><code>></code></td>
79 <td>º¸´Ù Å« À¥¼¹ö ¹öÀü</td></tr>
80 <tr><td><code>>=</code></td>
81 <td>Å©°Å³ª °°Àº À¥¼¹ö ¹öÀü</td></tr>
82 <tr><td><code><</code></td>
83 <td>º¸´Ù ÀÛÀº À¥¼¹ö ¹öÀü</td></tr>
84 <tr><td><code><=</code></td>
85 <td>À۰ųª °°Àº À¥¼¹ö ¹öÀü</td></tr>
88 <example><title>¿¹Á¦</title>
89 <IfVersion >= 2.1><br />
91 # ¹öÀüÀÌ 2.1.0 º¸´Ù Å©°Å³ª °°À»¶§¸¸<br />
97 <p>¼ýÀÚ ºñ±³¿Ü¿¡µµ Á¤±ÔÇ¥Çö½ÄÀ» »ç¿ëÇÏ¿© À¥¼¹ö ¹öÀüÀ» ÁöÁ¤ÇÒ
98 ¼ö ÀÖ´Ù. ¿©±â¿¡´Â µÎ°¡Áö ¹æ¹ýÀÌ ÀÖ´Ù.</p>
100 <table style="zebra" border="1">
101 <tr><th><var>operator</var></th><th>¼³¸í</th></tr>
102 <tr><td><code>=</code> ȤÀº <code>==</code></td>
103 <td><var>version</var>˼
104 <code>/<var>regex</var>/</code> Çü½ÄÀÌ´Ù</td></tr>
105 <tr><td><code>~</code></td>
106 <td><var>version</var>˼
107 <code><var>regex</var></code> Çü½ÄÀÌ´Ù</td></tr>
110 <example><title>¿¹Á¦</title>
111 <IfVersion = /^2.1.[01234]$/><br />
113 # ¿¹¸¦ µé¾î, ¿©±â¿¡ ¹ö±×°¡ Àִ ƯÁ¤ ¹öÀü¿¡ ´ëÇÑ ÇØ°áÃ¥ÀÌ ³ª¿Â´Ù
118 <p>¿¬»êÀÚ ¾Õ¿¡ ´À³¦Ç¥(<code>!</code>)¸¦ ¾²¸é Àǹ̸¦ ¹Ý´ë·Î
122 <IfVersion !~ ^2.1.[01234]$><br />
124 # ÀÌ ¹öÀüÀÌ ¾Æ´Ï¸é<br />
129 <p><var>operator</var>¸¦ »ý·«Çϸé <code>=</code>À̶ó°í