mirror of
https://github.com/apache/httpd.git
synced 2026-01-06 09:01:14 +03:00
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@151414 13f79535-47bb-0310-9956-ffa450edef68
136 lines
5.0 KiB
XML
136 lines
5.0 KiB
XML
<?xml version="1.0" encoding="iso-2022-jp"?>
|
||
<!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
|
||
<?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
|
||
<!-- English Revision: 151408 -->
|
||
|
||
<!--
|
||
Copyright 2004-2005 The Apache Software Foundation or its licensors,
|
||
as applicable.
|
||
|
||
Licensed 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>$B%P!<%8%g%s0MB8$N@_Dj(B</description>
|
||
<status>Extension</status>
|
||
<sourcefile>mod_version.c</sourcefile>
|
||
<identifier>version_module</identifier>
|
||
<compatibility>$B%P!<%8%g%s(B 2.1 $B0J9_(B</compatibility>
|
||
|
||
<summary>
|
||
<p>$BMM!9$J%P!<%8%g%s$N(B httpd $B$N0[$J$k@_Dj$r07$&$3$H$K$J$k!"(B
|
||
$B%F%9%H%9%$!<%H$dBg5,LO%M%C%H%o!<%/$G$N;HMQ$N$?$a$K@_7W$5$l$F$$$^$9!#(B
|
||
$B$3$N%b%8%e!<%k$O?7$7$$%3%s%F%J(B $B!=(B <directive
|
||
type="section" module="mod_version">IfVersion</directive> $B$r(B
|
||
$BDs6!$7$^$9!#$3$l$r;H$&$H!"?t;z$NHf3S$d@55,I=8=$K$h$k=@Fp$J(B
|
||
$B%P!<%8%g%s%A%'%C%/$,$G$-$k$h$&$K$J$j$^$9!#(B</p>
|
||
|
||
<example><title>$BNc(B</title>
|
||
<IfVersion 2.1.0><br />
|
||
<indent>
|
||
# current httpd version is exactly 2.1.0<br />
|
||
</indent>
|
||
</IfVersion><br />
|
||
<br />
|
||
<IfVersion >= 2.2><br />
|
||
<indent>
|
||
# use really new features :-)<br />
|
||
</indent>
|
||
</IfVersion>
|
||
</example>
|
||
|
||
<p>$B>\:Y$O0J2<$rFI$s$G$/$@$5$$!#(B</p>
|
||
</summary>
|
||
|
||
<directivesynopsis type="section">
|
||
<name>IfVersion</name>
|
||
<description>$B%P!<%8%g%s0MB8$N@_Dj$rF~$l$k(B</description>
|
||
<syntax><IfVersion [[!]<var>operator</var>] <var>version</var>> ...
|
||
</IfVersion></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> $B$O(B <program>httpd</program> $B$N%P!<%8%g%s(B
|
||
$B$,4p=`$rK~$?$7$?$H$-$K$N$_<B9T$5$;$?$$%G%#%l%/%F%#%V$r0O$_$^$9!#(B
|
||
$BDL>o$N(B ($B?tCM(B) $BHf3S$N$H$-$O(B <var>version</var> $B0z?t$O(B
|
||
<code><var>major</var>[.<var>minor</var>[.<var>patch</var>]]</code> $B$H$$$&(B
|
||
$B7A<0!"Nc$($P!"(B<code>2.1.0</code> $B$d(B <code>2.2</code> $B$H$J$j$^$9!#(B
|
||
<var>minor</var> $B$H(B <var>patch</var> $B$O>JN,2DG=$G$9!#>JN,$5$l$?>l9g$O!"(B
|
||
0 $B$r;XDj$7$?$b$N$H$_$J$5$l$^$9!#Hf3S$K$O<!$N?tCM(B <var>operator</var> $B$r(B
|
||
$B;XDj$G$-$^$9(B:</p>
|
||
|
||
<table style="zebra" border="1">
|
||
<tr><th><var>operator</var></th><th>$B@bL@(B</th></tr>
|
||
<tr><td><code>=</code> $B$H(B <code>==</code></td>
|
||
<td>$BF1$8(B httpd $B%P!<%8%g%s(B</td></tr>
|
||
<tr><td><code>></code></td>
|
||
<td>$B$h$jBg$-$$(B httpd $B%P!<%8%g%s(B</td></tr>
|
||
<tr><td><code>>=</code></td>
|
||
<td>$B;XDj0J>e$N(B httpd $B%P!<%8%g%s(B</td></tr>
|
||
<tr><td><code><</code></td>
|
||
<td>$B;XDjL$K~$N(B httpd $B%P!<%8%g%s(B</td></tr>
|
||
<tr><td><code><=</code></td>
|
||
<td>$B;XDj0J2<$N(B httpd $B%P!<%8%g%s(B</td></tr>
|
||
</table>
|
||
|
||
<example><title>$BNc(B</title>
|
||
<IfVersion >= 2.1><br />
|
||
<indent>
|
||
# this happens only in versions greater or<br />
|
||
# equal 2.1.0.<br />
|
||
</indent>
|
||
</IfVersion>
|
||
</example>
|
||
|
||
<p>$B?tCMHf3S$K2C$($F!"(Bhttp $B$N%P!<%8%g%sHV9f$KBP$7$F@55,I=8=$K$h$k(B
|
||
$B%^%C%A%s%0$,$G$-$^$9!#Fs<oN`$N=q$-J}$,$"$j$^$9(B:</p>
|
||
|
||
<table style="zebra" border="1">
|
||
<tr><th><var>operator</var></th><th>$B@bL@(B</th></tr>
|
||
<tr><td><code>=</code> or <code>==</code></td>
|
||
<td><var>version</var> $B$O(B
|
||
<code>/<var>regex</var>/</code> $B7A<0(B</td></tr>
|
||
<tr><td><code>~</code></td>
|
||
<td><var>version</var> $B$O(B
|
||
<code><var>regex</var></code> $B7A<0(B</td></tr>
|
||
</table>
|
||
|
||
<example><title>$BNc(B</title>
|
||
<IfVersion = /^2.1.[01234]$/><br />
|
||
<indent>
|
||
# e.g. workaround for buggy versions
|
||
</indent>
|
||
</IfVersion>
|
||
</example>
|
||
|
||
<p>$B%^%C%A%s%0$NH]Dj$rI=8=$9$k$?$a$K!"$9$Y$F$N%*%Z%l!<%?$OA0$K(B
|
||
$B46C2Id(B (<code>!</code>)$B$rIU$1$k$3$H$,$G$-$^$9(B:</p>
|
||
|
||
<example>
|
||
<IfVersion !~ ^2.1.[01234]$><br />
|
||
<indent>
|
||
# not for those versions<br />
|
||
</indent>
|
||
</IfVersion>
|
||
</example>
|
||
|
||
<p><var>operator</var> $B$,>JN,$5$l$?$H$-$O(B <code>=</code> $B$H(B
|
||
$B$_$J$5$l$^$9!#(B</p>
|
||
</usage>
|
||
</directivesynopsis>
|
||
|
||
</modulesynopsis>
|