UserDir
Jump to navigation
Jump to search
Sometimes, you might want individual users with accounts on the webserver to have personal pages...
sudo a2enmod userdirsudo systemctl restart apache2
To set up a personal page for the currently logged-in user:
mkdir ~/public_htmlchmod ugo+rX ~/public_html- create an index.html file in ~/public_html
vi ~/public_html/index.html
Assuming this users name is fred, his page can now be reached at MYSERVER.MYDOMAIN.NET/~fred/