]> granicus.if.org Git - apache/commitdiff
UserDir accepts multiple file paths. Submitted by: Vincent Jong <megaspaz tron.megasp...
authorVincent Bray <noodl@apache.org>
Fri, 30 Nov 2007 00:03:09 +0000 (00:03 +0000)
committerVincent Bray <noodl@apache.org>
Fri, 30 Nov 2007 00:03:09 +0000 (00:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@599646 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/howto/public_html.xml
docs/manual/mod/mod_userdir.xml

index 886ace7d85ce5734b46f0005eb8d2171aecf4a6a..4a86d3f634400f4136f1982324e7ace2fde89a2e 100644 (file)
     translated to the file path
     <code>/var/www/rbowen/docs/file.html</code></p>
 
+    <p>Multiple directories or directory paths can also be set.</p>
+
+    <example>
+      UserDir public_html /var/html
+    </example>
+
+    <p>For the URL <code>http://example.com/~rbowen/file.html</code>, 
+    Apache will search for <code>~rbowen</code>. If it isn't found, 
+    Apache will search for <code>rbowen</code> in <code>/var/html</code>. If
+    found, the above URL will then be translated to the file path 
+    <code>/var/html/rbowen/file.html</code></p>
+
   </section>
 
   <section id="enable">
index 44cd3d0172a68534b185eb9da2160f07a455bbd5..650a5593217d64ee9f44d700a5623de71e8de751 100644 (file)
@@ -42,7 +42,8 @@ tutorial</a></seealso>
 
 <name>UserDir</name>
 <description>Location of the user-specific directories</description>
-<syntax>UserDir <em>directory-filename</em></syntax>
+<syntax>UserDir <em>directory-filename</em> [<em>directory-filename</em>] ...
+</syntax>
 <contextlist><context>server config</context> <context>virtual
 host</context></contextlist>