Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to enable userdir module on apahe2 on ubuntu and set the path to directory for specific user? This statement in /etc/apache2/sites-enabled/default is making fail apache service to restart.

UserDir ~
share|improve this question
up vote 1 down vote accepted

On a standard Ubuntu installation, run

sudo a2enmod userdir

to enable it. See man a2enmod for more info.

For defining paths for userdir, see the "UserDir directive used" table at the documentation at Apache, reproduced quickly here:

UserDir directive used    Translated path
UserDir public_html       ~bob/public_html/one/two.html
UserDir /usr/web          /usr/web/bob/one/two.html
UserDir /home/*/www       /home/bob/www/one/two.html
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.