Apache:configuration

From DiLab
Revision as of 10:30, 23 March 2010 by Leo (talk | contribs) (New page: == Enabling user home pages for all users == For the users, create public_html directory, where the index.html and other web pages will go. Make sure the directory and the path to it is w...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Enabling user home pages for all users

For the users, create public_html directory, where the index.html and other web pages will go. Make sure the directory and the path to it is world readable and executable.

cd ~
mkdir public_html
chmod a+rx public_html

Enable the UserDir module for Apache2, and restart the Apache

sudo a2enmod userdir
sudo /etc/init.d/apache2 restart


You should be able to put web accessible content in your public_html directory, and access it like this:

http: //www.example.com/~youruser/