From 19b98bc41afbf97cae0d20924c061e0e1fc96918 Mon Sep 17 00:00:00 2001
From: Ryan Bloom
Date: Sat, 28 Sep 2002 06:10:47 +0000
Subject: [PATCH] Allow the UserDir directive to accept a list of directories.
This matches what Apache 1.3 does. Also add documentation for this feature.
PR: 9299
Submitted by: Jay Ball
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97001 13f79535-47bb-0310-9956-ffa450edef68
---
CHANGES | 4 +++
docs/manual/mod/mod_userdir.html.en | 14 ++++++++++
docs/manual/mod/mod_userdir.xml | 14 ++++++++++
modules/mappers/mod_userdir.c | 3 ---
modules/ssl/ssl_expr_parse.h | 42 ++++++++++++++---------------
5 files changed, 52 insertions(+), 25 deletions(-)
diff --git a/CHANGES b/CHANGES
index 46fdff9d8d..d4afb23b78 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,9 @@
Changes with Apache 2.0.43
+ *) Allow the UserDir directive to accept a list of directories.
+ This matches what Apache 1.3 does. Also add documentation for
+ this feature. [Jay Ball ]
+
*) New Module: mod_logio. adds the ability to log bytes sent and
received. [Bojan Smojver ]
diff --git a/docs/manual/mod/mod_userdir.html.en b/docs/manual/mod/mod_userdir.html.en
index 941ce50542..305a421e87 100644
--- a/docs/manual/mod/mod_userdir.html.en
+++ b/docs/manual/mod/mod_userdir.html.en
@@ -104,5 +104,19 @@ UserDir enabled
UserDir disabled user4 user5 user6
+It is also possible to specify alternative user directories.
+If you use a command like:
+
+Userdir public_html /usr/web http://www.foo.com/
+
+With a request for http://www.foo.com/~bob/one/two.html, will try to
+find the page at ~bob/public_html/one/two.html first, then
+/usr/web/bob/one/two.html, and finally it will send a redirect
+to http://www.foo.com/bob/one/two.html.
+If you add a redirect, it must be the last alternative in the list.
+Apache cannot determine if the redirect succeeded or not, so if you have
+the redirect earlier in the list, that will always be the alternative
+that is used.
+
See also