]> granicus.if.org Git - apache/commitdiff
Change Fallback to FallbackResource after extensive discussion with
authorNick Kew <niq@apache.org>
Tue, 15 Sep 2009 21:41:05 +0000 (21:41 +0000)
committerNick Kew <niq@apache.org>
Tue, 15 Sep 2009 21:41:05 +0000 (21:41 +0000)
wrowe and DrBacchus.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@815502 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
docs/manual/mod/mod_dir.xml
modules/mappers/mod_dir.c

diff --git a/CHANGES b/CHANGES
index 0d6494c9007771bbe6c81f171dc63ce8bbe5d791..8e7e229fd31e3d326b0b8d47e6db23dd255c5194 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -105,7 +105,7 @@ Changes with Apache 2.3.3
   *) mod_alias: ensure Redirect issues a valid URL.
      PR 44020 [HÃ¥kon Stordahl <hakon stordahl.org>]
 
-  *) mod_dir: add Fallback directive, to enable admin to specify
+  *) mod_dir: add FallbackResource directive, to enable admin to specify
      an action to happen when a URL maps to no file, without resorting
      to ErrorDocument or mod_rewrite.  PR 47184 [Nick Kew]
 
index 8f52dc98490daab68427258af535a998f6aa156c..28d08e4a4e01c54b092adfccc02c26806a2ad23b 100644 (file)
@@ -157,9 +157,9 @@ a directory</description>
 </usage>
 </directivesynopsis>
 <directivesynopsis>
-<name>Fallback</name>
+<name>FallbackResource</name>
 <description>Define a default URL for requests that don't map to a file</description>
-<syntax>Fallback <var>local-url</var></syntax>
+<syntax>FallbackResource <var>local-url</var></syntax>
 <default>None - httpd will return 404 (Not Found)</default>
 <contextlist><context>server config</context><context>virtual host</context>
 <context>directory</context><context>.htaccess</context></contextlist>
@@ -169,7 +169,7 @@ a directory</description>
     in your filesystem, and would otherwise return HTTP 404 (Not Found).
     For example</p>
     <example>
-        <code>Fallback not-404.php</code>
+        <code>FallbackResource not-404.php</code>
     </example>
     <p>will cause requests for non-existent files to be handled by
     <code>not-404.php</code>, while requests for files that exist
index d9efd539db6e65cb2ff67ddd7ce0c1b2bd0ea452..6ce3945d73e10e3f3d3d2b491c53b216140da725 100644 (file)
@@ -83,7 +83,7 @@ static const char *configure_slash(cmd_parms *cmd, void *d_, int arg)
 
 static const command_rec dir_cmds[] =
 {
-    AP_INIT_TAKE1("Fallback", ap_set_string_slot,
+    AP_INIT_TAKE1("FallbackResource", ap_set_string_slot,
                   (void*)APR_OFFSETOF(dir_config_rec, dflt),
                   DIR_CMD_PERMS, "Set a default handler"),
     AP_INIT_RAW_ARGS("DirectoryIndex", add_index, NULL, DIR_CMD_PERMS,
@@ -128,7 +128,7 @@ static int fixup_dflt(request_rec *r)
     if (name_ptr == NULL) {
         return DECLINED;
     }
-    /* XXX: if Fallback points to something that doesn't exist,
+    /* XXX: if FallbackResource points to something that doesn't exist,
      * this may recurse until it hits the limit for internal redirects
      * before returning an Internal Server Error.
      */