iTP Secure WebServer System Administrator's Guide (Version 7.0)

Configuration Directives
iTP Secure WebServer System Administrator’s Guide523346-012
A-86
Example
Example
User httpd
UserDir
Syntax
UserDir [-symlink-disable] [-symlink-owner] user-dir
Description
Set the UserDir directive to the name of the user directory (user-dir) that is to be
accessed whenever a URL begins with a tilde (~). When UserDir is set, any access
to a URL beginning with a tilde (~) is mapped to the specified directory within the
indicated local user’s home directory.
The options include the following:
-symlink-disable
This option disables symbolic links to files in the specified directory. As a result, the
iTP Secure WebServer returns “not found” in response to any attempt to access a
path that contains a symbolic link.
-symlink-owner
This option is similar in function to the -symlink-disable option: it also disables
symbolic links, but only if these symbolic links are owned by someone other than
the owner of the files to which the symbolic links point.
This directive also has a corresponding Region command, which if found within a
region, overrides this directive. For further information about using the UserDir
command in a Region directive, see Region Commands on page A-51.
For example, if UserDir is set to hypertext, and a Web client accesses the URL
/~black/home.html
the iTP Secure WebServer maps this request to the file hypertext/home.html in
Black’s home directory.
Note. Only httpd processes are switched by the User directive. Consequently, httpd
processes might encounter a Pathsend error 904 when communicating with the Pathway or
generic-CGI server if the application server’s security value is not set correctly. To avoid this
problem, be sure that you configure the Pathway or generic-CGI server to use the appropriate
security values. For information about security values, see Server
on page A-70. For
information about Pathsend error 904, see the NonStop TS/MP Pathsend and Server
Programming Manual.