<-
Apache > HTTP Server > Documentation > Version 2.4 > How-To / Tutorials

Per-user web directories

Available Languages:  en  |  es  |  fr  |  ja  |  ko  |  tr 

On systems with multiple users, each user can be permitted to have a web site in their home directory using the UserDir directive. Visitors to a URL http://example.com/~username/ will get content out of the home directory of the user "username", out of the subdirectory specified by the UserDir directive.

Note that, by default, access to these directories is not enabled. You can enable access when using UserDir by uncommenting the line:

#Include conf/extra/httpd-userdir.conf

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 <Directory> block within the main config file.

Support Apache!