Setting up Apache 2 server on Ubuntu 10.04
This post is from the official page, tailored for personal use. The basic steps are here.
- Copy the default site settings file
/etc/apache2/sites-available/default
to a new one at the same place, saytestsite
. - Edit the file with new information. Change the
DocumentRoot
and theDirectory
settings. - Disable the default one and enable the new one:
sudo a2dissite default && sudo a2ensite testsite
- Restart Apache 2:
sudo apache2ctl restart
- And the
index.html
orindex.php
files are good to go.
Now it’s a time to use your imagination for a new site.