Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.