]> granicus.if.org Git - apache/commitdiff
Moves the "dynamically regenerated" rule to advanced.
authorRich Bowen <rbowen@apache.org>
Thu, 5 Nov 2009 02:42:38 +0000 (02:42 +0000)
committerRich Bowen <rbowen@apache.org>
Thu, 5 Nov 2009 02:42:38 +0000 (02:42 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@832977 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/rewrite/advanced.html.en
docs/manual/rewrite/advanced.xml
docs/manual/rewrite/rewrite_guide.html.en
docs/manual/rewrite/rewrite_guide.xml

index 0ca151d715d628a73eba191d581048c4e0de7292..133e8667d8120ca83a0d331380cbc4e4d668ee44 100644 (file)
@@ -32,7 +32,9 @@ them, rather than merely cutting and pasting the examples into your
 configuration.</div>
 
 </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></ul></div>
+<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#sharding">URL-based sharding accross multiple backends</a></li>
+<li><img alt="" src="../images/down.gif" /> <a href="#on-the-fly-content">On-the-fly Content-Regeneration</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></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>
@@ -90,6 +92,47 @@ RewriteRule   ^/u/<strong>([^/]+)</strong>/?(.*)   http://<strong>${users-to-hos
     </dd>
   </dl>
 
+</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
+<div class="section">
+<h2><a name="on-the-fly-content" id="on-the-fly-content">On-the-fly Content-Regeneration</a></h2>
+
+  
+
+  <dl>
+    <dt>Description:</dt>
+
+    <dd>
+      <p>We wish to dynamically generate content, but store it
+      statically once it is generated. This rule will check for the
+      existence of the static file, and if it's not there, generate
+      it. The static files can be removed periodically, if desired (say,
+      via cron) and will be regenerated on demand.</p>
+    </dd>
+
+    <dt>Solution:</dt>
+
+    <dd>
+      This is done via the following ruleset:
+
+<div class="example"><pre>
+# This example is valid in per-directory context only
+RewriteCond %{REQUEST_FILENAME}   <strong>!-s</strong>
+RewriteRule ^page\.<strong>html</strong>$          page.<strong>cgi</strong>   [T=application/x-httpd-cgi,L]
+</pre></div>
+
+      <p>Here a request for <code>page.html</code> leads to an
+      internal run of a corresponding <code>page.cgi</code> if
+      <code>page.html</code> is missing or has filesize
+      null. The trick here is that <code>page.cgi</code> is a
+      CGI script which (additionally to its <code>STDOUT</code>)
+      writes its output to the file <code>page.html</code>.
+      Once it has completed, the server sends out
+      <code>page.html</code>. When the webmaster wants to force
+      a refresh of the contents, he just removes
+      <code>page.html</code> (typically from <code>cron</code>).</p>
+    </dd>
+  </dl>
+
 </div></div>
 <div class="bottomlang">
 <p><span>Available Languages: </span><a href="../en/rewrite/avoid.html" title="English">&nbsp;en&nbsp;</a></p>
index 21675a0816d16a0797f3e7a641e46c77a082de05..c82867303676b284281b106056063495488bcd55 100644 (file)
@@ -97,4 +97,45 @@ RewriteRule   ^/u/<strong>([^/]+)</strong>/?(.*)   http://<strong>${users-to-hos
 
 </section>
 
+<section id="on-the-fly-content">
+
+  <title>On-the-fly Content-Regeneration</title>
+
+  <dl>
+    <dt>Description:</dt>
+
+    <dd>
+      <p>We wish to dynamically generate content, but store it
+      statically once it is generated. This rule will check for the
+      existence of the static file, and if it's not there, generate
+      it. The static files can be removed periodically, if desired (say,
+      via cron) and will be regenerated on demand.</p>
+    </dd>
+
+    <dt>Solution:</dt>
+
+    <dd>
+      This is done via the following ruleset:
+
+<example><pre>
+# This example is valid in per-directory context only
+RewriteCond %{REQUEST_FILENAME}   <strong>!-s</strong>
+RewriteRule ^page\.<strong>html</strong>$          page.<strong>cgi</strong>   [T=application/x-httpd-cgi,L]
+</pre></example>
+
+      <p>Here a request for <code>page.html</code> leads to an
+      internal run of a corresponding <code>page.cgi</code> if
+      <code>page.html</code> is missing or has filesize
+      null. The trick here is that <code>page.cgi</code> is a
+      CGI script which (additionally to its <code>STDOUT</code>)
+      writes its output to the file <code>page.html</code>.
+      Once it has completed, the server sends out
+      <code>page.html</code>. When the webmaster wants to force
+      a refresh of the contents, he just removes
+      <code>page.html</code> (typically from <code>cron</code>).</p>
+    </dd>
+  </dl>
+
+</section>
+
 </manualpage> 
index 4a573c790cb4a84accf11d1d61ccf039551561ad..4e99250f6decc06c03050759c64591132ad5435e 100644 (file)
@@ -55,7 +55,6 @@
 <li><img alt="" src="../images/down.gif" /> <a href="#retrieve-missing-data">Retrieve Missing Data from Intranet</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#load-balancing">Load Balancing</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#new-mime-type">New MIME-type, New Service</a></li>
-<li><img alt="" src="../images/down.gif" /> <a href="#on-the-fly-content">On-the-fly Content-Regeneration</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#autorefresh">Document With Autorefresh</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#mass-virtual-hosting">Mass Virtual Hosting</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#proxy-deny">Proxy Deny</a></li>
@@ -801,50 +800,6 @@ HREF="*"
 
     </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="section">
-<h2><a name="on-the-fly-content" id="on-the-fly-content">On-the-fly Content-Regeneration</a></h2>
-
-      
-
-      <dl>
-        <dt>Description:</dt>
-
-        <dd>
-          <p>Here comes a really esoteric feature: Dynamically
-          generated but statically served pages, i.e., pages should be
-          delivered as pure static pages (read from the filesystem
-          and just passed through), but they have to be generated
-          dynamically by the web server if missing. This way you can
-          have CGI-generated pages which are statically served unless an
-          admin (or a <code>cron</code> job) removes the static contents. Then the
-          contents gets refreshed.</p>
-        </dd>
-
-        <dt>Solution:</dt>
-
-        <dd>
-          This is done via the following ruleset:
-
-<div class="example"><pre>
-# This example is valid in per-directory context only
-RewriteCond %{REQUEST_FILENAME}   <strong>!-s</strong>
-RewriteRule ^page\.<strong>html</strong>$          page.<strong>cgi</strong>   [T=application/x-httpd-cgi,L]
-</pre></div>
-
-          <p>Here a request for <code>page.html</code> leads to an
-          internal run of a corresponding <code>page.cgi</code> if
-          <code>page.html</code> is missing or has filesize
-          null. The trick here is that <code>page.cgi</code> is a
-          CGI script which (additionally to its <code>STDOUT</code>)
-          writes its output to the file <code>page.html</code>.
-          Once it has completed, the server sends out
-          <code>page.html</code>. When the webmaster wants to force
-          a refresh of the contents, he just removes
-          <code>page.html</code> (typically from <code>cron</code>).</p>
-        </dd>
-      </dl>
-
-    </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
-<div class="section">
 <h2><a name="autorefresh" id="autorefresh">Document With Autorefresh</a></h2>
 
       
index 2986f87f5f49fa2bdce54d923204a73bf0f14339..df2e137ece54965299af55c7856e7abbeeb47f2f 100644 (file)
@@ -796,50 +796,6 @@ HREF="*"
 
     </section>
 
-    <section id="on-the-fly-content">
-
-      <title>On-the-fly Content-Regeneration</title>
-
-      <dl>
-        <dt>Description:</dt>
-
-        <dd>
-          <p>Here comes a really esoteric feature: Dynamically
-          generated but statically served pages, i.e., pages should be
-          delivered as pure static pages (read from the filesystem
-          and just passed through), but they have to be generated
-          dynamically by the web server if missing. This way you can
-          have CGI-generated pages which are statically served unless an
-          admin (or a <code>cron</code> job) removes the static contents. Then the
-          contents gets refreshed.</p>
-        </dd>
-
-        <dt>Solution:</dt>
-
-        <dd>
-          This is done via the following ruleset:
-
-<example><pre>
-# This example is valid in per-directory context only
-RewriteCond %{REQUEST_FILENAME}   <strong>!-s</strong>
-RewriteRule ^page\.<strong>html</strong>$          page.<strong>cgi</strong>   [T=application/x-httpd-cgi,L]
-</pre></example>
-
-          <p>Here a request for <code>page.html</code> leads to an
-          internal run of a corresponding <code>page.cgi</code> if
-          <code>page.html</code> is missing or has filesize
-          null. The trick here is that <code>page.cgi</code> is a
-          CGI script which (additionally to its <code>STDOUT</code>)
-          writes its output to the file <code>page.html</code>.
-          Once it has completed, the server sends out
-          <code>page.html</code>. When the webmaster wants to force
-          a refresh of the contents, he just removes
-          <code>page.html</code> (typically from <code>cron</code>).</p>
-        </dd>
-      </dl>
-
-    </section>
-
     <section id="autorefresh">
 
       <title>Document With Autorefresh</title>