Hosting User Home Pages

UserDir some_directory
When this form of the UserDir directive is used, Apche receives a URL request of the form
http://www.example.com/~sudhir
and uses system resources to locate the home directory of a user named sudhir.
e.g.,
If the directive like UserDir some_directory is in effect, Apache will search in a directory
/home/sudhir/some_directory

UserDir /an/absolute/path
This method assumes that each user will have his/her own subdirectory under the specified UserDir. e.g., If Apche receives a URL request of the form

http://www.example.com/~sudhir/myphotos.html
when a directive like the following is in effect.
UserDir /usr/webspace
Apache will search in a directory
/usr/webspace/sudhir/myphotos.html

UserDir /an/absolute/path/*/with/wildcard
In this method the absolute path to the directory in which users should be storing their web documents.However, in plece of actual user name, you put an asterisk(*). If Apche receives a URL request of the form
http://www.example.com/~sudhir
when a directive like the following is in effect.
UserDir /usr/webspace/*/public_html
Apache will map the URL to the directory
/usr/webspace/sudhir/public_html

( categories: )