Difference between revisions of "UserDir"

From Da Nerd Mage Wiki
Jump to navigation Jump to search
(Created page with "Sometimes, you might want individual users with accounts on the webserver to have personal pages... *<code>sudo a2enmod userdir</code> *<code>sudo systemctl restart apache2</code> To set up a personal page for the currently logged-in user: *<code>mkdir ~/public_html</code> *<code>chmod ugo+rX ~/public_html</code> *create an index.html file in ~/public_html *<code>vi ~/public_html/index.html</code> Assuming this users name is '''fred''', his page can now be reached at '...")
 
m (Bart moved page WebServer - UserDir to UserDir: Cleanup)
(No difference)

Revision as of 15:04, 3 January 2022

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

  • sudo a2enmod userdir
  • sudo systemctl restart apache2

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
  • vi ~/public_html/index.html

Assuming this users name is fred, his page can now be reached at MYSERVER.MYDOMAIN.NET/~fred/