diff options
author | Joshua Slive <slive@apache.org> | 2005-04-06 14:00:23 +0000 |
---|---|---|
committer | Joshua Slive <slive@apache.org> | 2005-04-06 14:00:23 +0000 |
commit | d8d227c546f5ebc8130e3faf3843d679196f2e8b (patch) | |
tree | 88df54cf96c22278f96f6cef04bc3d68fc1d7007 | |
parent | f415b2485758b19f81ef6e36c0a11cba36381ebd (diff) | |
download | httpd-d8d227c546f5ebc8130e3faf3843d679196f2e8b.tar.gz |
Disable mod_userdir by default.
This is non-backwards-compatible. But it shouldn't effect most people,
because almost everyone has a UserDir directive in their config
anyway.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/simple-conf@160296 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | docs/manual/mod/mod_userdir.xml | 6 | ||||
-rw-r--r-- | modules/mappers/mod_userdir.c | 7 |
2 files changed, 10 insertions, 3 deletions
diff --git a/docs/manual/mod/mod_userdir.xml b/docs/manual/mod/mod_userdir.xml index 8c050dfefc..5b479703e0 100644 --- a/docs/manual/mod/mod_userdir.xml +++ b/docs/manual/mod/mod_userdir.xml @@ -43,7 +43,6 @@ tutorial</a></seealso> <name>UserDir</name> <description>Location of the user-specific directories</description> <syntax>UserDir <em>directory-filename</em></syntax> -<default>UserDir public_html</default> <contextlist><context>server config</context> <context>virtual host</context></contextlist> @@ -147,6 +146,11 @@ 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.</p> +<p>User directory substitution is not active by default in versions +2.1.4 and later. In earlier versions, <code>UserDir public_html</code> +was assumed if no <directive module="mod_userdir">UserDir</directive> +directive was present.</p> + </usage> <seealso><a href="../howto/public_html.html">public_html diff --git a/modules/mappers/mod_userdir.c b/modules/mappers/mod_userdir.c index 455b150d51..00130d8ec5 100644 --- a/modules/mappers/mod_userdir.c +++ b/modules/mappers/mod_userdir.c @@ -73,9 +73,12 @@ #endif -/* The default directory in user's home dir */ +/* + * The default directory in user's home dir + * In the default install, the module is disabled + */ #ifndef DEFAULT_USER_DIR -#define DEFAULT_USER_DIR "public_html" +#define DEFAULT_USER_DIR NULL #endif module AP_MODULE_DECLARE_DATA userdir_module; |