userdir.txt 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. =======
  2. userdir
  3. =======
  4. -------------------
  5. Module: mod_userdir
  6. -------------------
  7. :Author: Jan Kneschke
  8. :Date: $Date: 2004/08/29 09:43:49 $
  9. :Revision: $Revision: 1.1 $
  10. :abstract:
  11. The userdir module ...
  12. .. meta::
  13. :keywords: lighttpd, userdir
  14. .. contents:: Table of Contents
  15. Description
  16. ===========
  17. The userdir module provides a simple way to link user-based directories into the global namespace of the webserver.
  18. Requests in the form ``/~user/page.html`` are rewritten to take the file ``page.html`` from the home directory of the user.
  19. If ``userdir.path`` is set, the path will be appended to the home directory
  20. building the classic mapping of: ::
  21. userdir.path = "public_html"
  22. URL: http://www.example.org/~jan/index.html
  23. Path: /home/jan/public_html/
  24. To control which users should be able to use this feature you can set a list of usernames to include or exclude.
  25. In case your mapping is independent of /etc/passwd you can use
  26. ``userdir.basepath``: ::
  27. userdir.path = "htdocs"
  28. userdir.basepath = "/var/www/users/"
  29. URL: http://www.example.org/~jan/index.html
  30. Path: /var/www/users/jan/htdocs/index.html
  31. Options
  32. =======
  33. userdir.path (required option)
  34. usually it should be set to "public_html" to take ~/public_html/ as the document root
  35. 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)
  36. Example: ::
  37. userdir.path = "public_html"
  38. userdir.exclude-user
  39. list of usernames which may not use this feature
  40. Default: empty (all users may use it)
  41. Example: ::
  42. userdir.exclude-user = ( "root", "postmaster" )
  43. userdir.include-user
  44. if set, only users from this list may use the feature
  45. Default: empty (all users may use it)
  46. userdir.basepath
  47. if set, don't check /etc/passwd for homedir