The Linux users can have their individual websites but this needs to be enabled and the web server restarted. At the command line type
sudo a2enmod userdir
sudo /etc/init.d/apache2 restart
This enables the Userdir module in /etc/apache2/mods-enabled/userdir.conf and users can create pages in the directory /home/username/public_html
This is managed by the directive
<directory /home/*/public_html>
Other basic configurations can be
- Disable a user from serving webpages (e.g. root and user1)
Userdir disabled root user1 - Access URL as http://servername/~username
Userdir public_html - Access URL as http://servername/web/username
Userdir web