This is mostly a reminder to myself and is an addendum to
my earlier post on Apache VirtualHosts which seem to be my current most favourite thing in the realm of web-servery stuff. They make it much easier to migrate sites between servers, minimising downtime whilst maximising lack of link breakages.
The process for adding a new virtualhost, like I have just done for a subdomain of
simonwells.org, is quite simple:
1. Create a directory in /var/www/ for your new site.
2. Add a docs subdirectory to your new directory from (1).
2a. (
Optionally) Change the owner of your new directory to that of the person who will be editing the site.
$ sudo chown -R simon:simon simonwells.org
3. Create an entry in /etc/apache2/sites-available by copying an existing entry and editing it to suit your new site.
4. Create a symbolic link in sites-enabled to enable the site, e.g.
sudo ln -s ../sites-available/notes.simonwells.org notes.simonwells.org
5. Restart Apache 2.
sudo /etc/init.d/apache2 restart
You should now be able to access your new Apache 2 website or at least the space that it will occupy when you add some content.