Summary
The module mod_userdir provides for user-specific directories.
Directive
Module: mod_userdir | |
Syntax: UserDir directory [directory ...] | enabled username [username ...] | disabled [username...] | |
Default: UserDir public_html | |
Context: server config, virtual host | |
Override: mod_userdir | |
Origin: Apache | |
Example: UserDir WWW | |
Example: UserDir enable lewis thomas | |
Example: UserDir disable sherman fazio | |
Example: UserDir disable |
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. The user's home directory is based on the HOMEDIR setting of the user's iSeries™ user profile. Directory is one of the following:
If neither the enabled nor the disabled keywords appear in the UserDir directive, the argument is treated as a filename pattern (or list of filename patterns), and is used to turn the name into a directory specification. For example, assume that the HOMEDIR parameter of the iSeries user profile "bob" is set to /home/bob. A request for http://www.QIBM.com/~bob/one/two.html will be translated to:
UserDir public_html -> /home/bob/public_html/one/two.html UserDir /usr/web -> /usr/web/bob/one/two.html UserDir /home/*/www -> /home/bob/www/one/two.html
The following directives will send redirects to the client:
UserDir http://www.QIBM.com/users -> http://www.QIBM.com/users/home/bob/one/two.html UserDir http://www.QIBM.com/*/usr -> http://www.QIBM.com/home/bob/usr/one/two.html
See <Directory> and Security tips for HTTP Server for more information.