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/defaultto a new one at the same place, saytestsite. - Edit the file with new information. Change the
DocumentRootand theDirectorysettings. - Disable the default one and enable the new one:
sudo a2dissite default && sudo a2ensite testsite - Restart Apache 2:
sudo apache2ctl restart - And the
index.htmlorindex.phpfiles are good to go.
Now it’s a time to use your imagination for a new site.