How to Alias a site on Windows using XAMPP

I am currently using xampp on Windows XP and when working with WordPress find it particularly convenient for setting up a local copy of the site for development.

To set up the aliased site do the following:

1) Update the hosts file in windows.

For Windows XP this is located here:
C:\WINDOWS\system32\drivers\etc\hosts

2) Add the virtual host to apache in xampp by editing this file:

C:\xampp\apache\conf\extra\httpd-vhosts.conf

See documentation here or just read the comments contained in the file.

3) Restart apache server.

4) For Worpress edit the wp_options table to add the correct value for siteurl and home eg. http://mysite.local