xml version="1.0" encoding="ISO-8859-1"?>
|
Apache HTTP Server Version 2.2 ![]() Per-user web directoriesOn systems with multiple users, each user can be permitted to have a
web site in their home directory using the
See alsoPer-user web directories
Setting the file path with UserDirThe If a path is given which does not start with a leading slash, it is assumed to be a directory path relative to the home directory of the specified user. Given this configuration:
the URL If a path is given starting with a slash, a directory path will be constructed using that path, plus the username specified. Given this configuration:
the URL If a path is provided which contains an asterisk (*), a path is used in which the asterisk is replaced with the username. Given this configuration:
the URL Multiple directories or directory paths can also be set.
For the URL Redirecting to external URLsThe
The above example will redirect a request for
Restricting what users are permitted to use this featureUsing the syntax shown in the UserDir documentation, you can restrict what users are permitted to use this functionality:
The configuration above will enable the feature for all users
except for those listed in the
See Enabling a cgi directory for each userIn order to give each user their own cgi-bin directory, you can use
a
Then, presuming that
Allowing users to alter configurationIf you want to allows users to modify the server configuration in their web space, they will need to use.htaccess files to
make these changed. Ensure that you have set AllowOverride to a
value sufficient for the directives that you want to permit the users
to modify. See the .htaccess tutorial for
additional details on how this works.
|