]> granicus.if.org Git - apache/commitdiff
Rebuild with new nav element.
authorRich Bowen <rbowen@apache.org>
Tue, 18 May 2010 22:31:41 +0000 (22:31 +0000)
committerRich Bowen <rbowen@apache.org>
Tue, 18 May 2010 22:31:41 +0000 (22:31 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@945935 13f79535-47bb-0310-9956-ffa450edef68

13 files changed:
docs/manual/rewrite/access.html.en
docs/manual/rewrite/advanced.html.en
docs/manual/rewrite/avoid.html.en
docs/manual/rewrite/flags.html.en
docs/manual/rewrite/htaccess.html.en
docs/manual/rewrite/index.html.en
docs/manual/rewrite/index.xml.tr
docs/manual/rewrite/intro.html.en
docs/manual/rewrite/proxy.html.en
docs/manual/rewrite/remapping.html.en
docs/manual/rewrite/rewritemap.html.en
docs/manual/rewrite/tech.html.en
docs/manual/rewrite/vhosts.html.en

index 8916c307b1a80e48ba4a46f7c2ac8889795ff189..ca158d8c166a184fb422eb4e6fd708c87518fae8 100644 (file)
@@ -39,7 +39,7 @@ configuration.</div>
 <li><img alt="" src="../images/down.gif" /> <a href="#blocking-of-robots">Blocking of Robots</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#host-deny">Denying Hosts in a Blacklist</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#referer-deflector">Referer-based Deflector</a></li>
-</ul><h3>See also</h3><ul class="seealso"><li><a href="../mod/mod_rewrite.html">Module documentation</a></li><li><a href="intro.html">mod_rewrite introduction</a></li><li><a href="remapping.html">Redirection and remapping</a></li><li><a href="vhosts.html">Virtual hosts</a></li><li><a href="proxy.html">Proxying</a></li><li><a href="advanced.html">Advanced techniques and tricks</a></li><li><a href="avoid.html">When not to use mod_rewrite</a></li></ul></div>
+</ul><h3>See also</h3><ul class="seealso"><li><a href="../mod/mod_rewrite.html">Module documentation</a></li><li><a href="intro.html">mod_rewrite introduction</a></li><li><a href="remapping.html">Redirection and remapping</a></li><li><a href="vhosts.html">Virtual hosts</a></li><li><a href="proxy.html">Proxying</a></li><li><a href="rewritemap.html">RewriteMap</a></li><li><a href="advanced.html">Advanced techniques and tricks</a></li><li><a href="avoid.html">When not to use mod_rewrite</a></li></ul></div>
 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="section">
 <h2><a name="blocked-inline-images" id="blocked-inline-images">Forbidding Image "Hotlinking"</a></h2>
index a3d1fed95207d426c391ec4ccc1d9c49fd1feaca..3f25a47b7d0c23e766ffc016b62be16c73c0dbc3 100644 (file)
@@ -40,7 +40,7 @@ configuration.</div>
 <li><img alt="" src="../images/down.gif" /> <a href="#redirectanchors">Redirecting Anchors</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#time-dependent">Time-Dependent Rewriting</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#setenvvars">Set Environment Variables Based On URL Parts</a></li>
-</ul><h3>See also</h3><ul class="seealso"><li><a href="../mod/mod_rewrite.html">Module documentation</a></li><li><a href="intro.html">mod_rewrite introduction</a></li><li><a href="remapping.html">Redirection and remapping</a></li><li><a href="access.html">Controlling access</a></li><li><a href="vhosts.html">Virtual hosts</a></li><li><a href="proxy.html">Proxying</a></li><li><a href="avoid.html">When not to use mod_rewrite</a></li></ul></div>
+</ul><h3>See also</h3><ul class="seealso"><li><a href="../mod/mod_rewrite.html">Module documentation</a></li><li><a href="intro.html">mod_rewrite introduction</a></li><li><a href="remapping.html">Redirection and remapping</a></li><li><a href="access.html">Controlling access</a></li><li><a href="vhosts.html">Virtual hosts</a></li><li><a href="proxy.html">Proxying</a></li><li><a href="rewritemap.html">RewriteMap</a></li><li><a href="avoid.html">When not to use mod_rewrite</a></li></ul></div>
 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="section">
 <h2><a name="sharding" id="sharding">URL-based sharding accross multiple backends</a></h2>
index 4ebc1a0452b398a1e4901193ea553a8a57ab84db..26a35ce03bd5cf3b54106f4350337106114f8fdd 100644 (file)
@@ -46,7 +46,7 @@ configuration.</p>
 <li><img alt="" src="../images/down.gif" /> <a href="#vhosts">Virtual Hosting</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#proxy">Simple Proxying</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#setenv">Environment Variable Testing</a></li>
-</ul><h3>See also</h3><ul class="seealso"><li><a href="../mod/mod_rewrite.html">Module documentation</a></li><li><a href="intro.html">mod_rewrite introduction</a></li><li><a href="remapping.html">Redirection and remapping</a></li><li><a href="access.html">Controlling access</a></li><li><a href="vhosts.html">Virtual hosts</a></li><li><a href="proxy.html">Proxying</a></li><li><a href="advanced.html">Advanced techniques and tricks</a></li></ul></div>
+</ul><h3>See also</h3><ul class="seealso"><li><a href="../mod/mod_rewrite.html">Module documentation</a></li><li><a href="intro.html">mod_rewrite introduction</a></li><li><a href="remapping.html">Redirection and remapping</a></li><li><a href="access.html">Controlling access</a></li><li><a href="vhosts.html">Virtual hosts</a></li><li><a href="proxy.html">Proxying</a></li><li><a href="rewritemap.html">RewriteMap</a></li><li><a href="advanced.html">Advanced techniques and tricks</a></li></ul></div>
 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="section">
 <h2><a name="redirect" id="redirect">Simple Redirection</a></h2>
index 288e32a0ee36d99faec1806ae85823876464202b..af3e3a1a857adf6073c232f38f26d9f1a17a8072 100644 (file)
@@ -47,7 +47,7 @@ providing detailed explanations and examples.</p>
 <li><img alt="" src="../images/down.gif" /> <a href="#flag_r">R|redirect</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#flag_s">S|skip</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#flag_t">T|type</a></li>
-</ul><h3>See also</h3><ul class="seealso"><li><a href="../mod/mod_rewrite.html">Module documentation</a></li><li><a href="tech.html">Technical details</a></li></ul></div>
+</ul><h3>See also</h3><ul class="seealso"><li><a href="../mod/mod_rewrite.html">Module documentation</a></li><li><a href="intro.html">mod_rewrite introduction</a></li><li><a href="remapping.html">Redirection and remapping</a></li><li><a href="access.html">Controlling access</a></li><li><a href="vhosts.html">Virtual hosts</a></li><li><a href="proxy.html">Proxying</a></li><li><a href="rewritemap.html">RewriteMap</a></li><li><a href="advanced.html">Advanced techniques and tricks</a></li><li><a href="avoid.html">When not to use mod_rewrite</a></li></ul></div>
 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="section">
 <h2><a name="introduction" id="introduction">Introduction</a></h2>
index 2a0bc4b4643f4479705b5e944bae326544e741fb..890729cdffea80fe1c3f67149d0ab612751bea08 100644 (file)
@@ -28,7 +28,7 @@ the way that the rules change when you use mod_rewrite in .htaccess files,
 and how to deal with these changes.</p>
 
 </div>
-<div id="quickview"><h3>See also</h3><ul class="seealso"><li><a href="../mod/mod_rewrite.html">Module documentation</a></li><li><a href="intro.html">mod_rewrite introduction</a></li><li><a href="remapping.html">Redirection and remapping</a></li><li><a href="vhosts.html">Virtual hosts</a></li><li><a href="proxy.html">Proxying</a></li><li><a href="advanced.html">Advanced techniques and tricks</a></li><li><a href="avoid.html">When not to use mod_rewrite</a></li></ul></div>
+<div id="quickview"><h3>See also</h3><ul class="seealso"><li><a href="../mod/mod_rewrite.html">Module documentation</a></li><li><a href="intro.html">mod_rewrite introduction</a></li><li><a href="remapping.html">Redirection and remapping</a></li><li><a href="vhosts.html">Virtual hosts</a></li><li><a href="proxy.html">Proxying</a></li><li><a href="rewritemap.html">RewriteMap</a></li><li><a href="advanced.html">Advanced techniques and tricks</a></li><li><a href="avoid.html">When not to use mod_rewrite</a></li></ul></div>
 </div>
 <div class="bottomlang">
 <p><span>Available Languages: </span><a href="../en/rewrite/htaccess.html" title="English">&nbsp;en&nbsp;</a></p>
index 7571184935dc81bed6c0e4701075ad9ddef1122a..aa24e353bed17d03b6d63a1f412dfc1d2de88f91 100644 (file)
@@ -60,6 +60,7 @@ documentation</a></li>
 <li><a href="access.html">Using mod_rewrite to control access</a></li>
 <li><a href="vhosts.html">Dynamic virtual hosts with mod_rewrite</a></li>
 <li><a href="proxy.html">Dynamic proxying with mod_rewrite</a></li>
+<li><a href="rewritemap.html">RewriteMap</a></li>
 <li><a href="advanced.html">Advanced techniques and tricks</a></li>
 <li><a href="avoid.html">When <strong>NOT</strong> to use mod_rewrite</a></li>
 <li><a href="flags.html">RewriteRule Flags</a></li>
index b42dbefae4b15e25cab11b3c415bd9eed2881a11..2a8c3769e10e9832c1dacef6326659dd20d56517 100644 (file)
@@ -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.tr.xsl"?>
-<!-- English Revision: 636374:895619 (outdated) -->
+<!-- English Revision: 636374:945934 (outdated) -->
 <!-- =====================================================
  Translated by: Nilgün Belma Bugüner <nilgun belgeler.org>
    Reviewed by: Orhan Berent <berent belgeler.org>
index 139cab6e150b13017f39415774da994db15f9ad9..5ca582bab9b7b24086c86d07b3ebba94f02c396a 100644 (file)
@@ -36,7 +36,7 @@ but this doc should help the beginner get their feet wet.
 <li><img alt="" src="../images/down.gif" /> <a href="#rewritecond">Rewrite Conditions</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#rewritemap">Rewrite maps</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#htaccess">.htaccess files</a></li>
-</ul><h3>See also</h3><ul class="seealso"><li><a href="../mod/mod_rewrite.html">Module documentation</a></li><li><a href="remapping.html">Redirection and remapping</a></li><li><a href="access.html">Controlling access</a></li><li><a href="advanced.html">Advanced techniques and tricks</a></li><li><a href="avoid.html">When not to use mod_rewrite</a></li></ul></div>
+</ul><h3>See also</h3><ul class="seealso"><li><a href="../mod/mod_rewrite.html">Module documentation</a></li><li><a href="remapping.html">Redirection and remapping</a></li><li><a href="access.html">Controlling access</a></li><li><a href="vhosts.html">Virtual hosts</a></li><li><a href="proxy.html">Proxying</a></li><li><a href="rewritemap.html">RewriteMap</a></li><li><a href="advanced.html">Advanced techniques and tricks</a></li><li><a href="avoid.html">When not to use mod_rewrite</a></li></ul></div>
 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="section">
 <h2><a name="introduction" id="introduction">Introduction</a></h2>
index a7f0d66e820096cfa9b5a341305d5679552564d9..9835aed9a49e4cb3b80cea3ce16760594611adee 100644 (file)
@@ -28,7 +28,7 @@ how to use the RewriteRule's [P] flag to proxy content to another server.
 A number of recipes are provided that describe common scenarios.</p>
 
 </div>
-<div id="quickview"><h3>See also</h3><ul class="seealso"><li><a href="../mod/mod_rewrite.html">Module documentation</a></li><li><a href="intro.html">mod_rewrite introduction</a></li><li><a href="remapping.html">Redirection and remapping</a></li><li><a href="access.html">Controlling access</a></li><li><a href="vhosts.html">Virtual hosts</a></li><li><a href="advanced.html">Advanced techniques and tricks</a></li><li><a href="avoid.html">When not to use mod_rewrite</a></li></ul></div>
+<div id="quickview"><h3>See also</h3><ul class="seealso"><li><a href="../mod/mod_rewrite.html">Module documentation</a></li><li><a href="intro.html">mod_rewrite introduction</a></li><li><a href="remapping.html">Redirection and remapping</a></li><li><a href="access.html">Controlling access</a></li><li><a href="vhosts.html">Virtual hosts</a></li><li><a href="rewritemap.html">RewriteMap</a></li><li><a href="advanced.html">Advanced techniques and tricks</a></li><li><a href="avoid.html">When not to use mod_rewrite</a></li></ul></div>
 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="section">
 <h2><a name="dynamic-proxy" id="dynamic-proxy">Proxying Content with mod_rewrite</a></h2>
index 5ad984cc1ea94245daf70a71a5aa7e129cc48a47..52ff8c3b0dfa0099b03ab25a09e06e8270cee70e 100644 (file)
@@ -46,7 +46,7 @@ configuration.</div>
 <li><img alt="" src="../images/down.gif" /> <a href="#canonicalurl">Canonical URLs</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#moveddocroot">Moved <code>DocumentRoot</code></a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#fallback-resource">Fallback Resource</a></li>
-</ul><h3>See also</h3><ul class="seealso"><li><a href="../mod/mod_rewrite.html">Module documentation</a></li><li><a href="intro.html">mod_rewrite introduction</a></li><li><a href="access.html">Controlling access</a></li><li><a href="vhosts.html">Virtual hosts</a></li><li><a href="proxy.html">Proxying</a></li><li><a href="advanced.html">Advanced techniques and tricks</a></li><li><a href="avoid.html">When not to use mod_rewrite</a></li></ul></div>
+</ul><h3>See also</h3><ul class="seealso"><li><a href="../mod/mod_rewrite.html">Module documentation</a></li><li><a href="intro.html">mod_rewrite introduction</a></li><li><a href="access.html">Controlling access</a></li><li><a href="vhosts.html">Virtual hosts</a></li><li><a href="proxy.html">Proxying</a></li><li><a href="rewritemap.html">RewriteMap</a></li><li><a href="advanced.html">Advanced techniques and tricks</a></li><li><a href="avoid.html">When not to use mod_rewrite</a></li></ul></div>
 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="section">
 <h2><a name="old-to-new" id="old-to-new">From Old to New (internal)</a></h2>
index e6e46cb6d4e91285091664dfd1972c7495bede6b..3b9d0fa9e0a7599f2d0c28c350c8cf6caf63d2c6 100644 (file)
 <p><span>Available Languages: </span><a href="../en/rewrite/rewritemap.html" title="English">&nbsp;en&nbsp;</a></p>
 </div>
 
-
-<p>This document supplements the <code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code> 
+    <p>This document supplements the <code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code> 
 <a href="../mod/mod_rewrite.html">reference documentation</a>. It describes
 the use of the <code class="directive"><a href="../mod/mod_rewrite.html#rewritemap">RewriteMap</a></code> directive,
 and provides examples of each of the various <code>RewriteMap</code> types.</p>
-
-<div class="warning">Note that many of these examples won't work unchanged in your
+    <div class="warning">Note that many of these examples won't work unchanged in your
 particular server configuration, so it's important that you understand
 them, rather than merely cutting and pasting the examples into your
 configuration.</div>
-
-</div>
+  </div>
 <div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#introduction">Introduction</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#txt">txt: Plain text maps</a></li>
-<li><img alt="" src="../images/down.gif" /> <a href="#rnd">Randomized Plain Text</a></li>
-<li><img alt="" src="../images/down.gif" /> <a href="#dbm">DBM Hash File</a></li>
-<li><img alt="" src="../images/down.gif" /> <a href="#int">Internal Function</a></li>
-<li><img alt="" src="../images/down.gif" /> <a href="#prg">External Rewriting Program</a></li>
-<li><img alt="" src="../images/down.gif" /> <a href="#dbd">SQL Query</a></li>
+<li><img alt="" src="../images/down.gif" /> <a href="#rnd">rnd: Randomized Plain Text</a></li>
+<li><img alt="" src="../images/down.gif" /> <a href="#dbm">dbm: DBM Hash File</a></li>
+<li><img alt="" src="../images/down.gif" /> <a href="#int">int: Internal Function</a></li>
+<li><img alt="" src="../images/down.gif" /> <a href="#prg">prg: External Rewriting Program</a></li>
+<li><img alt="" src="../images/down.gif" /> <a href="#dbd">dbd or fastdbd: SQL Query</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#summary">Summary</a></li>
-</ul><h3>See also</h3><ul class="seealso"><li><a href="../mod/mod_rewrite.html">Module documentation</a></li><li><a href="intro.html">mod_rewrite introduction</a></li><li><a href="remapping.html">Redirection and remapping</a></li><li><a href="access.html">Controlling access</a></li><li><a href="vhosts.html">Virtual hosts</a></li><li><a href="proxy.html">Proxying</a></li><li><a href="advanced.html">Advanced techniques and tricks</a></li><li><a href="avoid.html">When not to use mod_rewrite</a></li></ul></div>
+</ul><h3>See also</h3><ul class="seealso"><li> <a href="../mod/mod_rewrite.html">Module documentation</a> </li><li> <a href="intro.html">mod_rewrite introduction</a> </li><li> <a href="remapping.html">Redirection and remapping</a> </li><li> <a href="access.html">Controlling access</a> </li><li> <a href="vhosts.html">Virtual hosts</a> </li><li> <a href="proxy.html">Proxying</a> </li><li> <a href="advanced.html">Advanced techniques and tricks</a> </li><li> <a href="avoid.html">When not to use mod_rewrite</a> </li></ul></div>
 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="section">
 <h2><a name="introduction" id="introduction">Introduction</a></h2>
-
-      <p>The <code class="directive">RewriteMap</code> directive defines a
+    
+    <p>The <code class="directive">RewriteMap</code> directive defines a
       <em>Rewriting Map</em> which can be used inside rule
       substitution strings by the mapping-functions to
       insert/substitute fields through a key lookup. The source of
       this lookup can be of various types.</p>
-
-      <p>The <a id="mapfunc" name="mapfunc"><em>MapName</em></a> is
+    <p>The <a id="mapfunc" name="mapfunc"><em>MapName</em></a> is
       the name of the map and will be used to specify a
       mapping-function for the substitution strings of a rewriting
       rule via one of the following constructs:</p>
-
-      <p class="indent">
-        <strong><code>${</code> <em>MapName</em> <code>:</code>
-        <em>LookupKey</em> <code>}</code><br />
-         <code>${</code> <em>MapName</em> <code>:</code>
-        <em>LookupKey</em> <code>|</code> <em>DefaultValue</em>
-        <code>}</code></strong>
-      </p>
-
-      <p>When such a construct occurs, the map <em>MapName</em> is
+    <p class="indent">
+      <strong>
+        <code>${</code>
+        <em>MapName</em>
+        <code>:</code>
+        <em>LookupKey</em>
+        <code>}</code>
+        <br />
+        <code>${</code>
+        <em>MapName</em>
+        <code>:</code>
+        <em>LookupKey</em>
+        <code>|</code>
+        <em>DefaultValue</em>
+        <code>}</code>
+      </strong>
+    </p>
+    <p>When such a construct occurs, the map <em>MapName</em> is
       consulted and the key <em>LookupKey</em> is looked-up. If the
       key is found, the map-function construct is substituted by
       <em>SubstValue</em>. If the key is not found then it is
       substituted by <em>DefaultValue</em> or by the empty string
       if no <em>DefaultValue</em> was specified.</p>
-
-      <p>For example, you might define a
+    <p>For example, you might define a
       <code class="directive">RewriteMap</code> as:</p>
-
-      <div class="example"><p><code>
+    <div class="example"><p><code>
       RewriteMap examplemap txt:/path/to/file/map.txt
       </code></p></div>
-
-      <p>You would then be able to use this map in a
+    <p>You would then be able to use this map in a
       <code class="directive">RewriteRule</code> as follows:</p>
-
-      <div class="example"><p><code>
+    <div class="example"><p><code>
       RewriteRule ^/ex/(.*) ${examplemap:$1}
       </code></p></div>
-
-      <p>The following combinations for <em>MapType</em> and
+    <p>The following combinations for <em>MapType</em> and
       <em>MapSource</em> can be used:</p>
   </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="section">
 <h2><a name="txt" id="txt">txt: Plain text maps</a></h2>
-
-   <p>MapType: <code>txt</code>, MapSource: Unix filesystem
+    
+    <p>MapType: <code>txt</code>, MapSource: Unix filesystem
       path to valid regular file</p>
-
-      <p>This is the standard rewriting map feature where the
+    <p>This is the standard rewriting map feature where the
       <em>MapSource</em> is a plain ASCII file containing
       either blank lines, comment lines (starting with a '#'
       character) or pairs like the following - one per
       line.</p>
-
-      <p class="indent">
-        <strong><em>MatchingKey</em>
-        <em>SubstValue</em></strong>
-      </p>
-
-<div class="example"><h3>Example</h3><pre>
+    <p class="indent">
+      <strong>
+        <em>MatchingKey</em>
+        <em>SubstValue</em>
+      </strong>
+    </p>
+    <div class="example"><h3>Example</h3><pre>
 ##
 ##  map.txt -- rewriting map
 ##
@@ -114,19 +112,16 @@ configuration.</div>
 Ralf.S.Engelschall    rse   # Bastard Operator From Hell
 Mr.Joe.Average        joe   # Mr. Average
 </pre></div>
-
-<div class="example"><p><code>
+    <div class="example"><p><code>
 RewriteMap real-to-user txt:/path/to/file/map.txt
 </code></p></div>
-
-</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
+  </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="section">
-<h2><a name="rnd" id="rnd">Randomized Plain Text</a></h2>
-
-           <p>MapType: <code>rnd</code>, MapSource: Unix filesystem
+<h2><a name="rnd" id="rnd">rnd: Randomized Plain Text</a></h2>
+    
+    <p>MapType: <code>rnd</code>, MapSource: Unix filesystem
           path to valid regular file</p>
-
-          <p>This is identical to the Standard Plain Text variant
+    <p>This is identical to the Standard Plain Text variant
           above but with a special post-processing feature: After
           looking up a value it is parsed according to contained
           ``<code>|</code>'' characters which have the meaning of
@@ -137,9 +132,8 @@ RewriteMap real-to-user txt:/path/to/file/map.txt
           several back-end server, via a reverse-proxy. Images are sent
           to one of the servers in the 'static' pool, while everything
           else is sent to one of the 'dynamic' pool.</p>
-          <p>Example:</p>
-
-<div class="example"><h3>Rewrite map file</h3><pre>
+    <p>Example:</p>
+    <div class="example"><h3>Rewrite map file</h3><pre>
 ##
 ##  map.txt -- rewriting map
 ##
@@ -147,78 +141,64 @@ RewriteMap real-to-user txt:/path/to/file/map.txt
 static   www1|www2|www3|www4
 dynamic  www5|www6
 </pre></div>
-
-<div class="example"><h3>Configuration directives</h3><p><code>
+    <div class="example"><h3>Configuration directives</h3><p><code>
 RewriteMap servers rnd:/path/to/file/map.txt<br />
 <br />
 RewriteRule ^/(.*\.(png|gif|jpg)) http://${servers:static}/$1
 [NC,P,L]<br />
 RewriteRule ^/(.*) http://${servers:dynamic}/$1 [P,L]
 </code></p></div>
-
-</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
+  </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="section">
-<h2><a name="dbm" id="dbm">DBM Hash File</a></h2>
-
-<p>MapType:
+<h2><a name="dbm" id="dbm">dbm: DBM Hash File</a></h2>
+    
+    <p>MapType:
           <code>dbm[=<em>type</em>]</code>, MapSource: Unix filesystem
           path to valid regular file</p>
-
-          <p>Here the source is a binary format DBM file containing
+    <p>Here the source is a binary format DBM file containing
           the same contents as a <em>Plain Text</em> format file, but
           in a special representation which is optimized for really
           fast lookups. The <em>type</em> can be sdbm, gdbm, ndbm, or
           db depending on <a href="../install.html#dbm">compile-time
           settings</a>.  If the <em>type</em> is omitted, the
           compile-time default will be chosen.</p>
-
-          <p>To create a dbm file from a source text file, use the <a href="../programs/httxt2dbm.html">httxt2dbm</a> utility.</p>
-
-<div class="example"><p><code>
+    <p>To create a dbm file from a source text file, use the <a href="../programs/httxt2dbm.html">httxt2dbm</a> utility.</p>
+    <div class="example"><p><code>
 $ httxt2dbm -i mapfile.txt -o mapfile.map
 </code></p></div>
-</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
+  </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="section">
-<h2><a name="int" id="int">Internal Function</a></h2>
-          <p>
+<h2><a name="int" id="int">int: Internal Function</a></h2>
+    
+    <p>
            MapType: <code>int</code>, MapSource: Internal Apache httpd
           function</p>
-
-          <p>Here, the source is an internal Apache httpd function.
+    <p>Here, the source is an internal Apache httpd function.
           Currently you cannot create your own, but the following
           functions already exist:</p>
-
-          <ul>
-            <li><strong>toupper</strong>:<br />
+    <ul>
+      <li><strong>toupper</strong>:<br />
              Converts the key to all upper case.</li>
-
-            <li><strong>tolower</strong>:<br />
+      <li><strong>tolower</strong>:<br />
              Converts the key to all lower case.</li>
-
-            <li><strong>escape</strong>:<br />
+      <li><strong>escape</strong>:<br />
              Translates special characters in the key to
             hex-encodings.</li>
-
-            <li><strong>unescape</strong>:<br />
+      <li><strong>unescape</strong>:<br />
              Translates hex-encodings in the key back to
             special characters.</li>
-          </ul>
-</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
+    </ul>
+  </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="section">
-<h2><a name="prg" id="prg">External Rewriting Program</a></h2>
-<p>
+<h2><a name="prg" id="prg">prg: External Rewriting Program</a></h2><p>
            MapType: <code>prg</code>, MapSource: Unix filesystem
           path to valid regular file
-          </p>
-
-          <p>Here the source is a program, not a map file. To
+          </p><p>Here the source is a program, not a map file. To
           create it you can use a language of your choice, but
           the result has to be an executable program (either
           object-code or a script with the magic cookie trick
           '<code>#!/path/to/interpreter</code>' as the first
-          line).</p>
-
-         <p>This program is started once, when the Apache httpd server
+          line).</p><p>This program is started once, when the Apache httpd server
           is started, and then communicates with the rewriting engine
           via its <code>stdin</code> and <code>stdout</code>
           file-handles. For each map-function lookup it will
@@ -227,81 +207,63 @@ $ httxt2dbm -i mapfile.txt -o mapfile.map
           looked-up value as a newline-terminated string on
           <code>stdout</code> or the four-character string
           ``<code>NULL</code>'' if it fails (<em>i.e.</em>, there
-          is no corresponding value for the given key).</p>
-
-          <p>This feature utilizes the <code>rewrite-map</code> mutex,
+          is no corresponding value for the given key).</p><p>This feature utilizes the <code>rewrite-map</code> mutex,
           which is required for reliable communication with the program.
           The mutex mechanism and lock file can be configured with the
-          <code class="directive"><a href="../mod/core.html#mutex">Mutex</a></code> directive.</p>
-
-          <p>External rewriting programs are not started if they're defined in a
+          <code class="directive"><a href="../mod/core.html#mutex">Mutex</a></code> directive.</p><p>External rewriting programs are not started if they're defined in a
           context that does not have <code class="directive">RewriteEngine</code> set to
           <code>on</code></p>.
 
           <p>A trivial program which will implement a 1:1 map (<em>i.e.</em>,
-          key == value) could be:</p>
-
-<div class="example"><pre>
+          key == value) could be:</p><div class="example"><pre>
 #!/usr/bin/perl
 $| = 1;
 while (&lt;STDIN&gt;) {
     # ...put here any transformations or lookups...
     print $_;
 }
-</pre></div>
-
-          <p>But be very careful:</p>
-
-          <ol>
-            <li>``<em>Keep it simple, stupid</em>'' (KISS).
-            If this program hangs, it will cause Apache httpd to hang
-            when trying to use the relevant rewrite rule.</li>
-
-            <li>A common mistake is to use buffered I/O on
-            <code>stdout</code>. Avoid this, as it will cause a deadloop!
-            ``<code>$|=1</code>'' is used above, to prevent this.</li>
-          </ol>
-          </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
+</pre></div><p>But be very careful:</p><ol><li>``<em>Keep it simple, stupid</em>'' (KISS).
+If this program hangs, it will cause Apache httpd to hang
+when trying to use the relevant rewrite rule.</li><li>A common mistake is to use buffered I/O on
+<code>stdout</code>. Avoid this, as it will cause a deadloop!
+``<code>$|=1</code>'' is used above, to prevent this.</li></ol></div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="section">
-<h2><a name="dbd" id="dbd">SQL Query</a></h2>
-           <p>MapType: <code>dbd</code> or <code>fastdbd</code>,
-           MapSource: An SQL SELECT statement that takes a single
-                      argument and returns a single value.</p>
-
-          <p>This uses <code class="module"><a href="../mod/mod_dbd.html">mod_dbd</a></code> to implement a rewritemap
-          by lookup in an SQL database.  There are two forms:
-          <code>fastdbd</code> caches database lookups internally,
-          <code>dbd</code> doesn't.  So <code>dbd</code> incurs a
-          performance penalty but responds immediately if the database
-          contents are updated, while <code>fastdbd</code> is more
-          efficient but won't re-read database contents until server
-          restart.</p>
-          <p>If a query returns more than one row, a random row from
-          the result set is used.</p>
-<div class="example"><h3>Example</h3><p><code>
-
+<h2><a name="dbd" id="dbd">dbd or fastdbd: SQL Query</a></h2>
+    
+    <p>MapType: <code>dbd</code> or <code>fastdbd</code>,
+MapSource: An SQL SELECT statement that takes a single
+          argument and returns a single value.</p>
+    <p>This uses <code class="module"><a href="../mod/mod_dbd.html">mod_dbd</a></code> to implement a rewritemap
+by lookup in an SQL database.  There are two forms:
+<code>fastdbd</code> caches database lookups internally,
+<code>dbd</code> doesn't.  So <code>dbd</code> incurs a
+performance penalty but responds immediately if the database
+contents are updated, while <code>fastdbd</code> is more
+efficient but won't re-read database contents until server
+restart.</p>
+    <p>If a query returns more than one row, a random row from
+the result set is used.</p>
+    <div class="example"><h3>Example</h3><p><code>
 RewriteMap myquery "fastdbd:SELECT destination FROM rewrite WHERE source = %s"
 </code></p></div>
-</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
+  </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="section">
 <h2><a name="summary" id="summary">Summary</a></h2>
-
-      <p>The <code class="directive">RewriteMap</code> directive can occur more than
+    
+    <p>The <code class="directive">RewriteMap</code> directive can occur more than
       once. For each mapping-function use one
       <code class="directive">RewriteMap</code> directive to declare its rewriting
       mapfile. While you cannot <strong>declare</strong> a map in
       per-directory context it is of course possible to
       <strong>use</strong> this map in per-directory context. </p>
-
-<div class="note"><h3>Note</h3> For plain text and DBM format files the
+    <div class="note"><h3>Note</h3> For plain text and DBM format files the
 looked-up keys are cached in-core until the <code>mtime</code> of the
 mapfile changes or the server does a restart. This way you can have
 map-functions in rules which are used for <strong>every</strong>
 request.  This is no problem, because the external lookup only happens
 once!
 </div>
-
-</div></div>
+  </div></div>
 <div class="bottomlang">
 <p><span>Available Languages: </span><a href="../en/rewrite/rewritemap.html" title="English">&nbsp;en&nbsp;</a></p>
 </div><div id="footer">
index 8c9680e018fbf025b91d60f26738232faa04e0e9..d9ffb399fc3d64b87d35a1209d092b169fa3cb25 100644 (file)
@@ -28,7 +28,7 @@ and URL matching.</p>
 <div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#Internal">Internal Processing</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#InternalAPI">API Phases</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#InternalRuleset">Ruleset Processing</a></li>
-</ul><h3>See also</h3><ul class="seealso"><li><a href="../mod/mod_rewrite.html">Module documentation</a></li><li><a href="index.html">mod_rewrite detailed examples</a></li></ul></div>
+</ul><h3>See also</h3><ul class="seealso"><li><a href="../mod/mod_rewrite.html">Module documentation</a></li><li><a href="intro.html">mod_rewrite introduction</a></li><li><a href="remapping.html">Redirection and remapping</a></li><li><a href="access.html">Controlling access</a></li><li><a href="vhosts.html">Virtual hosts</a></li><li><a href="proxy.html">Proxying</a></li><li><a href="rewritemap.html">RewriteMap</a></li><li><a href="advanced.html">Advanced techniques and tricks</a></li><li><a href="avoid.html">When not to use mod_rewrite</a></li></ul></div>
 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="section">
 <h2><a name="Internal" id="Internal">Internal Processing</a></h2>
index 72f4593636bb28785fe93b63a877c15207aad1c5..6e15847857311844a1665b448678d6140c27d7af 100644 (file)
@@ -36,7 +36,7 @@ mod_rewrite.</div>
 <li><img alt="" src="../images/down.gif" /> <a href="#simple.rewrite">Dynamic
     Virtual Hosts Using <code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code></a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#xtra-conf">Using a Separate Virtual Host Configuration File</a></li>
-</ul><h3>See also</h3><ul class="seealso"><li><a href="../mod/mod_rewrite.html">Module documentation</a></li><li><a href="intro.html">mod_rewrite introduction</a></li><li><a href="remapping.html">Redirection and remapping</a></li><li><a href="access.html">Controlling access</a></li><li><a href="proxy.html">Proxying</a></li><li><a href="advanced.html">Advanced techniques and tricks</a></li><li><a href="avoid.html">When not to use mod_rewrite</a></li></ul></div>
+</ul><h3>See also</h3><ul class="seealso"><li><a href="../mod/mod_rewrite.html">Module documentation</a></li><li><a href="intro.html">mod_rewrite introduction</a></li><li><a href="remapping.html">Redirection and remapping</a></li><li><a href="access.html">Controlling access</a></li><li><a href="proxy.html">Proxying</a></li><li><a href="rewritemap.html">RewriteMap</a></li><li><a href="advanced.html">Advanced techniques and tricks</a></li><li><a href="avoid.html">When not to use mod_rewrite</a></li></ul></div>
 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="section">
 <h2><a name="per-hostname" id="per-hostname">Virtual Hosts For Arbitrary Hostnames</a></h2>