Enable apache mod_userdir on Debian

Today I wanted to enable mod_userdir for apache2 on Debian 5.0 (Lenny).
Here's what I did:
# sudo cp /etc/apache2/mods-available/userdir* /etc/apache2/mods-enabled/
# sudo /etc/init.d/apache2 restart
That was easy! The userdir.conf was already set-up to disable this feature for user root and to serve files from /home/*/public_html so to test that it works I did:
# mkdir ~/public_html
# echo yay! > ~/public_html/index.html
and then typed http://mysite.com/~jah/ into my web browser to check that the index file was served. yay!

1 Comment

Thanks. It works!

Leave a comment

Recent Entries

  • Is The Internet On?

    The following is a link to an invaluable resource which will tell you ["whether or not the Internet is On":http://jahboite.co.uk/is-the-internet-on.php].......

  • How To Enable the PHP Fileinfo Extension under Windows

    These five steps will hopefully help you to enable the Fileinfo extension for PHP under Windows....

  • The TCP/IP Guide - Greasemonkey Userscript

    jah has written a greasemonkey userscript to fix the page layout for The TCP/IP Guide free online edition - it's very simple, but it took him ages!...

  • PicaVue

    jah has begun work on an open source javascript gallery to display his Picasa Web Albums - it's called PicaVue...

  • Nmap 5 - An Introduction

    The newest version of Nmap - Nmap 5.00 - is now available for download and is the best Nmap ever. This is a short introduction to Nmap and the Nmap family of tools: Zenmap; Ncat and Ndiff which are included with this latest release....