summaryrefslogtreecommitdiff
path: root/docs/manual/mod/mod_version.xml.ko
blob: 910cbfe90c66f00d16b2062d6c7b58750105ea59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<?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:421174 (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.0.54 ÀÌÈĺÎÅÍ</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>