UserDir directive


Purpose

The UserDir directive sets the real directory in a user's home directory to index upon recieving a request from a user supported directory.


Syntax

UserDir dir

Where dir is a partial path relative to the users home directory (as given in /etc/passwd). The server takes the path it creates with this information, and looks for the user's document in the resulting full path.

The keyword DISABLED will disable the user supported directories feature.

Only one UserDir directive is allowed in the server configuration file.


Default

If you do not specify a UserDir, httpd assumes:

UserDir public_html


Example

UserDir web-docs

This would set UserDir to web-docs. A request for /~robm/foo.gif would cause the server to retrieve ~robm/web-docs/foo.gif.


Return to Resource Configuration File Overview

httpd@ncsa.uiuc.edu