From: Rich Bowen username", out of
the subdirectory specified by the
Note that, by default, access to these directories is not +
By default, access to these directories is not
enabled. You can enable access when using
in the default config file conf/httpd.conf, and adapting the httpd-userdir.conf
file as necessary, or by including the appropriate directives in a
the URL http://example.com/~rbowen/file.html will be
translated to the file path
@@ -85,9 +95,11 @@ UserDir public_html
constructed using that path, plus the username specified. Given this
configuration:
the URL http://example.com/~rbowen/file.html will be
translated to the file path /var/html/rbowen/file.html
the URL http://example.com/~rbowen/file.html will be
translated to the file path
@@ -106,15 +120,17 @@ UserDir /var/www/*/docs
Multiple directories or directory paths can also be set.
-For the URL http://example.com/~rbowen/file.html,
- Apache will search for ~rbowen. If it isn't found,
- Apache will search for rbowen in /var/html. If
- found, the above URL will then be translated to the file path
- /var/html/rbowen/file.html
The arguments are considered in the order they appear.
+ For the URL http://example.com/~rbowen/file.html,
+ httpd will search for ~rbowen. If it isn't found,
+ httpd will then search for rbowen in /var/html.
+ The file will be served from whichever location is found first.
The
The above example will redirect a request for
http://example.com/~bob/abc.html to
@@ -139,19 +157,23 @@ UserDir http://example.org/users/*/
Using 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 disabled statement.
You can, likewise, disable the feature for all but a few users by
using a configuration like the following:
See
In order to give each user their own cgi-bin directory, you can use +
To give each user their own cgi-bin directory, you can use
a
Then, presuming that If you want to allows users to modify the server configuration in
+ If you want to allow users to modify the server configuration in
their web space, they will need to use UserDir is set to
public_html, a cgi program example.cgi
@@ -186,7 +210,7 @@ UserDir enabled rbowen krietz
.htaccess files to
make these changes. Ensure that you have set