[core] fdevent_libev: workaround compiler warning
[lighttpd.git] / doc / outdated / userdir.txt
blob7a62f06d102402140682cae7ee998e685dd881fe
1 =======
2 userdir
3 =======
5 -------------------
6 Module: mod_userdir
7 -------------------
9 :Author: Jan Kneschke
10 :Date: $Date: 2004/08/29 09:43:49 $
11 :Revision: $Revision: 1.1 $
13 :abstract:
14   The userdir module ...
16 .. meta::
17   :keywords: lighttpd, userdir
19 .. contents:: Table of Contents
21 Description
22 ===========
24 The userdir module provides a simple way to link user-based directories into the global namespace of the webserver.
26 Requests in the form ``/~user/page.html`` are rewritten to take the file ``page.html`` from the home directory of the user.
27 If ``userdir.path`` is set, the path will be appended to the home directory
28 building the classic mapping of: ::
30   userdir.path = "public_html"
32   URL: http://www.example.org/~jan/index.html
33   Path: /home/jan/public_html/
35 To control which users should be able to use this feature you can set a list of usernames to include or exclude.
37 In case your mapping is independent of /etc/passwd you can use
38 ``userdir.basepath``: ::
40   userdir.path = "htdocs"
41   userdir.basepath = "/var/www/users/"
43   URL: http://www.example.org/~jan/index.html
44   Path: /var/www/users/jan/htdocs/index.html
46 Options
47 =======
49 userdir.path (required option)
50   usually it should be set to "public_html" to take ~/public_html/ as the document root
52   Default: unset (mod_userdir disabled; set it to "" if you want the home directory to be the document root as it was the default before 1.4.19)
53   Example: ::
55     userdir.path = "public_html"
57 userdir.exclude-user
58   list of usernames which may not use this feature
60   Default: empty (all users may use it)
61   Example: ::
63     userdir.exclude-user = ( "root", "postmaster" )
66 userdir.include-user
67   if set, only users from this list may use the feature
69   Default: empty (all users may use it)
71 userdir.basepath
72   if set, don't check /etc/passwd for homedir