]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Rebuild transformations.
authorRich Bowen <rbowen@apache.org>
Thu, 6 Jan 2011 13:36:40 +0000 (13:36 +0000)
committerRich Bowen <rbowen@apache.org>
Thu, 6 Jan 2011 13:36:40 +0000 (13:36 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1055870 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_dir.html.en
docs/manual/mod/mod_dir.xml.ja
docs/manual/mod/mod_dir.xml.ko
docs/manual/mod/mod_dir.xml.tr

index 1197d3f4f088323e0e08cf745c19317b8470b2bc..80f1ec4824fb184460c0f56cd685aeea895afc26 100644 (file)
@@ -176,11 +176,35 @@ a directory</td></tr>
     in your filesystem, and would otherwise return HTTP 404 (Not Found).
     For example</p>
     <div class="example"><p><code>
-        <code>FallbackResource default.php</code>
+        <code>FallbackResource /not-404.php</code>
     </code></p></div>
     <p>will cause requests for non-existent files to be handled by
-    <code>default.php</code>, while requests for files that exist
+    <code>not-404.php</code>, while requests for files that exist
     are unaffected.</p>
+    <p>It is frequently desirable to have a single file or resource
+    handle all requests to a particular directory, except those requests
+    that correspond to an existing file or script. This is often
+    referred to as a 'front controller.'</p>
+    <p>In earlier versions of httpd, this effect typically required
+    <code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code>, and the use of the <code>-f</code> and
+    <code>-d</code> tests for file and directory existence. This now
+    requires only one line of configuration.</p>
+    <div class="example"><p><code>
+        <code>FallbackResource /index.php</code>
+    </code></p></div>
+    <p>Existing files, such as images, css files, and so on, will be
+    served normally.</p>
+    <p>In a sub-URI, such as <em>http://example.com/blog/</em> this
+    <em>sub-URI</em> has to be supplied as <var>local-url</var>:</p>
+    <div class="example"><p><code>
+         <code>
+             &lt;Directory /web/example.com/htdocs/blog&gt;<br />
+            <span class="indent">
+                  FallbackResource /blog/index.php<br />
+             </span>
+             &lt;/Directory&gt;
+         </code>
+    </code></p></div>
 
 </div>
 </div>
index efce5938ac864392a5871e2216304f89af176120..d49b37c79c82c40605e1d8760e5d006ce617412f 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
-<!-- English Revision: 421100:1044522 (outdated) -->
+<!-- English Revision: 421100:1055866 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index b1eab449ede94e74efb8014ff529e86140caabb9..8272ecc42b59e628cdc5e164a9b92ab4f3404982 100644 (file)
@@ -1,7 +1,7 @@
 <?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: 151408:1044522 (outdated) -->
+<!-- English Revision: 151408:1055866 (outdated) -->
 
 <!--
  Licensed to the Apache Software Foundation (ASF) under one or more
index 44e1006bee5fa6382509ac941a7caed22343056e..cecd26782937d804ca335a1078d0e3e991746193 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.tr.xsl"?>
-<!-- English Revision: 962989:1044522 (outdated) -->
+<!-- English Revision: 962989:1055866 (outdated) -->
 <!-- =====================================================
  Translated by: Nilgün Belma Bugüner <nilgun belgeler.org>
    Reviewed by: Orhan Berent <berent belgeler.org>