0N/A<!
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
0N/A<
TITLE>Apache module mod_userdir</
TITLE>
2362N/A<!-- Background white, links blue (unvisited), navy (visited), red (active) --> 0N/A<
H1 ALIGN="CENTER">Module mod_userdir</
H1>
0N/Ais compiled in by default. It provides for user-specific directories.
2362N/A<
LI><
A HREF="#userdir">UserDir</
A>
0N/A<
H2><
A name="userdir">UserDir</
A></
H2>
0N/A<!--%plaintext <?INDEX {\tt UserDir} directive> --> 0N/A><
STRONG>Default:</
STRONG></
A> <
CODE>UserDir public_html</
CODE><
BR>
0N/A><
STRONG>Context:</
STRONG></
A> server config, virtual host<
BR>
0N/A><
STRONG>Status:</
STRONG></
A> Base<
BR>
0N/A><
STRONG>Module:</
STRONG></
A> mod_userdir<
BR>
0N/A><
STRONG>Compatibility:</
STRONG></
A> All forms except the <
CODE>UserDir
0N/Apublic_html</
CODE> form are only available in Apache 1.1 or above. Use
of the <
SAMP>enabled</
SAMP> keyword, or <
SAMP>disabled</
SAMP> with a
list of usernames, is only available in Apache 1.3 and above.<
P>
The UserDir directive sets the real directory in a user's home directory
to use when a request for a document for a user is received.
<
LI>The name of a directory or a pattern such as those shown below.
<
LI>The keyword <
SAMP>disabled</
SAMP>. This turns off <
EM>all</
EM>
username-to-directory translations except those explicitly named with
the <
SAMP>enabled</
SAMP> keyword (see below).
<
LI>The keyword <
SAMP>disabled</
SAMP> followed by a space-delimited
list of usernames. Usernames that appear in such a list will
<
EM>never</
EM> have directory translation performed, even if they
appear in an <
SAMP>enabled</
SAMP> clause.
<
LI>The keyword <
SAMP>enabled</
SAMP> followed by a space-delimited list
of usernames. These usernames will have directory translation
performed even if a global disable is in effect, but not if they also
appear in a <
SAMP>disabled</
SAMP> clause.
If neither the <
SAMP>enabled</
SAMP> nor the <
SAMP>disabled</
SAMP>
keywords appear in the <
SAMP>Userdir</
SAMP> directive, the argument is
treated as a filename pattern, and is used to turn the name into a
directory specification. A request for
The following directives will send redirects to the client:
Be careful when using this directive; for instance,
<
SAMP>"UserDir ./"</
SAMP> would map
<
SAMP>"/~root"</
SAMP> to
<
SAMP>"/"</
SAMP> - which is probably undesirable. If you are
running Apache 1.3 or above, it is strongly recommended that your
"<
SAMP>UserDir disabled root</
SAMP>" declaration.
page for more information.