2005-02-20 14:27:00 +00:00
|
|
|
=======
|
|
|
|
userdir
|
|
|
|
=======
|
|
|
|
|
|
|
|
-------------------
|
|
|
|
Module: mod_userdir
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
:Author: Jan Kneschke
|
|
|
|
:Date: $Date: 2004/08/29 09:43:49 $
|
|
|
|
:Revision: $Revision: 1.1 $
|
|
|
|
|
|
|
|
:abstract:
|
|
|
|
The userdir module ...
|
|
|
|
|
|
|
|
.. meta::
|
|
|
|
:keywords: lighttpd, userdir
|
|
|
|
|
|
|
|
.. contents:: Table of Contents
|
|
|
|
|
|
|
|
Description
|
|
|
|
===========
|
|
|
|
|
|
|
|
The userdir module provides a simple way to link user-based directories into the global namespace of the webserver.
|
|
|
|
|
2005-12-20 14:02:44 +00:00
|
|
|
Requests in the form ``/~user/page.html`` are rewritten to take the file ``page.html`` from the home directory of the user.
|
|
|
|
If ``userdir.path`` is set, the path will be appended to the home directory
|
2005-10-31 09:06:35 +00:00
|
|
|
building the classic mapping of: ::
|
|
|
|
|
|
|
|
userdir.path = "public_html"
|
|
|
|
|
|
|
|
URL: http://www.example.org/~jan/index.html
|
|
|
|
Path: /home/jan/public_html/
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2005-12-20 14:02:44 +00:00
|
|
|
To control which users should be able to use this feature you can set a list of usernames to include or exclude.
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2005-12-20 14:02:44 +00:00
|
|
|
In case your mapping is independent of /etc/passwd you can use
|
2005-10-31 09:06:35 +00:00
|
|
|
``userdir.basepath``: ::
|
|
|
|
|
|
|
|
userdir.path = "htdocs"
|
|
|
|
userdir.basepath = "/var/www/users/"
|
|
|
|
|
|
|
|
URL: http://www.example.org/~jan/index.html
|
|
|
|
Path: /var/www/users/jan/htdocs/index.html
|
|
|
|
|
2005-02-20 14:27:00 +00:00
|
|
|
Options
|
|
|
|
=======
|
|
|
|
|
|
|
|
userdir.path
|
2005-12-20 14:02:44 +00:00
|
|
|
usually it should be set to "public_html" to take ~/public_html/ as the document root
|
2005-02-20 14:27:00 +00:00
|
|
|
|
2005-12-20 14:02:44 +00:00
|
|
|
Default: empty (document root is the home directory)
|
2005-02-20 14:27:00 +00:00
|
|
|
Example: ::
|
|
|
|
|
|
|
|
userdir.path = "public_html"
|
|
|
|
|
|
|
|
userdir.exclude-user
|
2005-12-20 14:02:44 +00:00
|
|
|
list of usernames which may not use this feature
|
2005-02-20 14:27:00 +00:00
|
|
|
|
|
|
|
Default: empty (all users may use it)
|
|
|
|
Example: ::
|
|
|
|
|
|
|
|
userdir.exclude-user = ( "root", "postmaster" )
|
|
|
|
|
|
|
|
|
|
|
|
userdir.include-user
|
|
|
|
if set, only users from this list may use the feature
|
|
|
|
|
2005-12-20 14:02:44 +00:00
|
|
|
Default: empty (all users may use it)
|
2005-10-31 09:06:35 +00:00
|
|
|
|
|
|
|
userdir.basepath
|
|
|
|
if set, don't check /etc/passwd for homedir
|