Difference between revisions of "UserDir"
Jump to navigation
Jump to search
m (Bart moved page WebServer - UserDir to UserDir: Cleanup) |
|||
(One intermediate revision by one other user not shown) | |||
Line 10: | Line 10: | ||
*<code>vi ~/public_html/index.html</code> | *<code>vi ~/public_html/index.html</code> | ||
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/''' | ||
<span style="color: rgb(255, 0, 0);">'''[[Now Do A Backup!{{!}}Now Do A Backup!]]'''</span> | |||
[[Category:WebServers]] |
Latest revision as of 16:39, 13 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/