Difference between revisions of "WebServer - UserDir"

From The TinkerNet Wiki
Jump to navigation Jump to search
Line 2: Line 2:
  
 
*<code>sudo a2enmod userdir</code>
 
*<code>sudo a2enmod userdir</code>
*<code>service apache2 restart</code>
+
*<code>sudo systemctl restart apache2</code>
 
*<code>sudo nano /etc/apache2/mods-enabled/userdir.conf</code>
 
*<code>sudo nano /etc/apache2/mods-enabled/userdir.conf</code>
 
**(see: http://www.techytalk.info/enable-userdir-apache-module-ubuntu-debian-based-linux-distributions/)
 
**(see: http://www.techytalk.info/enable-userdir-apache-module-ubuntu-debian-based-linux-distributions/)

Revision as of 14:37, 1 January 2022

Sometimes, you might want individual users with accounts on the webserver to have personal pages...

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/