From: Joshua Slive Date: Wed, 6 Apr 2005 14:00:23 +0000 (+0000) Subject: Disable mod_userdir by default. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8d227c546f5ebc8130e3faf3843d679196f2e8b;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/docs/manual/mod/mod_userdir.xml b/docs/manual/mod/mod_userdir.xml index 8c050dfefcc..5b479703e06 100644 --- a/docs/manual/mod/mod_userdir.xml +++ b/docs/manual/mod/mod_userdir.xml @@ -43,7 +43,6 @@ tutorial UserDir Location of the user-specific directories UserDir directory-filename -UserDir public_html server config virtual host @@ -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.

+

User directory substitution is not active by default in versions +2.1.4 and later. In earlier versions, UserDir public_html +was assumed if no UserDir +directive was present.

+ public_html diff --git a/modules/mappers/mod_userdir.c b/modules/mappers/mod_userdir.c index 455b150d514..00130d8ec52 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;