summaryrefslogtreecommitdiff
path: root/docs/manual/sections.xml.ja
diff options
context:
space:
mode:
authorTakashi Sato <takashi@apache.org>2008-07-10 13:16:15 +0000
committerTakashi Sato <takashi@apache.org>2008-07-10 13:16:15 +0000
commit36c7fe1e16161d84b5a0c43a426d666ec253a1d9 (patch)
treecd7b7b226ed121c2741f36ece592271b704b4ad6 /docs/manual/sections.xml.ja
parent930ff7437b43e83036df21421a737d7b13f10623 (diff)
downloadhttpd-36c7fe1e16161d84b5a0c43a426d666ec253a1d9.tar.gz
sync
Submitted by: kawai Reviewed by: takashi git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@675567 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/sections.xml.ja')
-rw-r--r--docs/manual/sections.xml.ja45
1 files changed, 34 insertions, 11 deletions
diff --git a/docs/manual/sections.xml.ja b/docs/manual/sections.xml.ja
index 2a13e0c706..5275b28b88 100644
--- a/docs/manual/sections.xml.ja
+++ b/docs/manual/sections.xml.ja
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE manualpage SYSTEM "./style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="./style/manual.ja.xsl"?>
-<!-- English Revision: 151408:420990 (outdated) -->
+<!-- English Revision: 420990 -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
@@ -36,6 +36,7 @@
<related>
<modulelist>
<module>core</module>
+<module>mod_version</module>
<module>mod_proxy</module>
</modulelist>
<directivelist>
@@ -45,6 +46,7 @@
<directive type="section" module="core">FilesMatch</directive>
<directive type="section" module="core">IfDefine</directive>
<directive type="section" module="core">IfModule</directive>
+<directive type="section" module="mod_version">IfVersion</directive>
<directive type="section" module="core">Location</directive>
<directive type="section" module="core">LocationMatch</directive>
<directive type="section" module="mod_proxy">Proxy</directive>
@@ -55,10 +57,11 @@
<p>コンテナには二つの基本となる種類があります。ほとんどのコンテナは
各リクエストに対して評価されます。その場合、コンテナ中のディレクティブは
-コンテナにマッチするリクエストにのみ適用されます。
-一方、<directive type="section"
- module="core">IfDefine</directive> コンテナと <directive
-type="section" module="core">IfModule</directive> コンテナは
+コンテナにマッチするリクエストにのみ適用されます。一方、
+<directive type="section" module="core">IfDefine</directive>,
+<directive type="section" module="core">IfModule</directive>,
+<directive type="section" module="mod_version">IfVersion</directive>
+コンテナは
サーバの起動時と再起動時にのみ評価されます。起動時に条件が真であれば、
コンテナ中のディレクティブはすべてのリクエストに適用されます。条件が
偽であれば、コンテナ中のディレクティブは無視されます。</p>
@@ -96,8 +99,27 @@ MimeMagicFile conf/magic<br />
&lt;/IfModule&gt;
</example>
-<p><directive type="section" module="core">IfDefine</directive> ディレクティブと
-<directive type="section" module="core">IfModule</directive> ディレクティブは
+<p><directive type="section" module="mod_version">IfVersion</directive>
+ディレクティブは
+<directive type="section" module="core">IfDefine</directive> や
+<directive type="section" module="core">IfModule</directive>と、
+とてもよく似ていますが、稼働中のサーバのバージョンが特定のバージョンの時にのみ
+適用されます。様々なバージョンの httpd を様々な設定で動作させることになる場合で、
+テストスイートや巨大なネットワークでの用途を想定して、
+このモジュールは設計されています。</p>
+
+<example>
+ &lt;IfVersion >= 2.1&gt;<br />
+ <indent>
+ # this happens only in versions greater or<br />
+ # equal 2.1.0.<br />
+ </indent>
+ &lt;/IfVersion&gt;
+</example>
+
+<p><directive type="section" module="core">IfDefine</directive>,
+<directive type="section" module="core">IfModule</directive>,
+<directive type="section" module="mod_version">IfVersion</directive> ディレクティブは
テストの前に "!" を付けることで否定の条件を適用することができます。
また、これらのセクションはより複雑な制限を課すために入れ子にすることができます。
</p>
@@ -174,7 +196,8 @@ Deny from all<br />
<section id="webspace"><title>ウェブ空間コンテナ</title>
<p>一方、<directive type="section" module="core">Location</directive>
-ディレクティブとその正規表現版はウェブ空間上の内容に対して設定を変更します。
+ディレクティブとその<glossary ref="regex">正規表現</glossary>版は
+ウェブ空間上の内容に対して設定を変更します。
たとえば、次の設定では /private で始まる URL パスへのアクセスを制限します。
具体的には、
<code>http://yoursite.example.com/private</code>,
@@ -222,8 +245,8 @@ shell スタイルのワイルドカードキャラクタが使用できます
<directive type="section" module="core">DirectoryMatch</directive>,
<directive type="section" module="core">FilesMatch</directive>,
<directive type="section" module="core">LocationMatch</directive>
-があり、マッチを選択するのに perl 互換<a href="glossary.html#regex"
->正規表現</a>を使用できます。しかし、次の設定のマージに目を通して、
+があり、マッチを選択するのに perl 互換<glossary ref="regex"
+>正規表現</glossary>を使用できます。しかし、次の設定のマージに目を通して、
regex セクションを使用することで、ディレクティブの適用がどのように
変化するか把握しておいてください。</p>
@@ -476,4 +499,4 @@ Deny from badguy.example.com<br />
</section>
</section>
-</manualpage>
+</manualpage> \ No newline at end of file