Difference between revisions of "WebServer - UserDir"
Jump to navigation
Jump to search
Line 13: | Line 13: | ||
*create an index.html file in ~/public_html | *create an index.html file in ~/public_html | ||
− | Assuming this users name is fred, his page can now be reached at '''MyServer.MyDomain.net/~fred/''' | + | Assuming this users name is '''fred''', his page can now be reached at '''MyServer.MyDomain.net/~fred/''' |
Revision as of 17:22, 24 June 2020
Sometimes, you might want individual users with accounts on the webserver to have personal pages...
sudo a2enmod userdir
service apache2 restart
sudo nano /etc/apache2/mods-enabled/userdir.conf
- (see: http://www.techytalk.info/enable-userdir-apache-module-ubuntu-debian-based-linux-distributions/)
- NOTE: Verify that you are using the configuration for the correct version of Apache!
To set up a personal page for the currently logged-in user:
mkdir ~/public_html
chmod ugo+rX ~/public_html
- create an index.html file in ~/public_html
Assuming this users name is fred, his page can now be reached at MyServer.MyDomain.net/~fred/