Apache mod_userdir does not work

I am trying to access my web site like http://www.mywebsite.com/~someuser

My plateform is Ubuntu lucid 10.04 and I am using Apache 2.2.14

I tried to enable mod_userdir by

sudo a2enmod userdir
sudo /etc/init.d/apache2 restart

I then modify

<IfModule mod_userdir.c>
 UserDir public_html
</IfModule>

I restart apache2 again: �/etc/init.d/apache2 restart�

However when I try to access my website like http://www.mywebsite.com/~someuser I get error code 404

Apache error log show: �File does not exist: /var/www/~someuser � but my public_html file is in �/home/big/usmail/staff/username � and not /var/www

A virtual host document root is /var/www but a number of user�s public_ html file is in

/home/big/usmail/staff/username
/home/nyc/whale/staff02/username
/home/ucl/snail/staff03/username

What are am doing wrong? Can you help? Please

Check whether the UserDir directive points to the correct path or not and whether the user is allowed to have an UserDir directory or not.

Thanks, it's working now.

The problem was users's home directory was not mounted as a result I mounted users home directory and it started working.