mod_userdir.html revision 6c3fa49523412b2cadc1c8ea057855d575202625
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes<HTML>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes<HEAD>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes<TITLE>Apache module mod_userdir</TITLE>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes</HEAD>
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes<BODY>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes<!--#include virtual="header.html" -->
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes<H1>Module mod_userdir</h1>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesThis module is contained in the <code>mod_userdir.c</code> file, and
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesis compiled in by default. It provides for user-specific directories.
0662ed52e814f8f08ef0e09956413a792584eddffuankg
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes<ul>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes<li><A HREF="#userdir">UserDir</A>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes</ul>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes<hr>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes<A name="userdir"><h2>UserDir</h2></A>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes<!--%plaintext &lt;?INDEX {\tt UserDir} directive&gt; -->
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes<strong>Syntax:</strong> UserDir <em>directory/filename</em><br>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes<strong>Default:</strong> <code>UserDir public_html</code><br>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes<Strong>Context:</strong> server config, virtual host<br>
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes<strong>Status:</strong> Base<br>
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes<strong>Module:</strong> mod_userdir<br>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes<strong>Compatibility:</strong> All forms except the <code>UserDir
cfb941e9ad5276eef7bc8f3eedcd270f30cfec35fuankgpublic_html</code> form are only available in Apache 1.1 or above.<p>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesThe UserDir directive sets the real directory in a user's home directory
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesto use when a request for a document for a user is received.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes<em>Directory</em> is either <code>disabled</code>, to disable this feature,
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes or the name of a directory, following one of the following
bb2b38cd44b032118359afbc743efbea12f48e61bnicholespatterns. If not disabled, then a request for
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes<code>http://www.foo.com/~bob/one/two.html</code> will be translated to:
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes<pre>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesUserDir public_html -> ~bob/public_html/one/two.html
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesUserDir /usr/web -> /usr/web/bob/one/two.html
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesUserDir /home/*/www -> /home/bob/www/one/two.html
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes</pre>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesThe following directives will send redirects to the client:
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes<pre>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesUserDir http://www.foo.com/users -> http//www.foo.com/users/bob/one/two.html
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesUserDir http://www.foo.com/*/usr -> http://www.foo.com/bob/usr/one/two.html
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesUserDir http://www.foo.com/~*/ -> http://www.foo.com/~bob/one/two.html
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes</pre>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes<!--#include virtual="footer.html" -->
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes</BODY>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes</HTML>
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes