Setting up Virtual Hosts with Apache 2.2 is a fairly painless process.
First I created a webroot folder to contain all the local sites.For each project i created a folder personal.blog.localhost. Inside this folder create a www folder.
Should look something like
C:\webroot\personal.blog.localhost\www
Then edit your hosts file, it can be found c:\windows\system32\drivers\etc\hosts
add a line for each of your projects
127.0.0.1 personal.blog.localhost
127.0.0.1 cakephp.localhost
127.0.0.1 codeigniter.localhost
and save the file.
Next modify your httpd.conf file in your Apache conf folder uncomment the line by removing the #
Include conf/extra/httpd-vhosts.conf
and save the file.
Open up the httpd-vhost.conf file found in the extra’s folder
and add a VirtualHost entry for each of your local sites.
<VirtualHost *:80>
ServerName personal.blog.localhost
DocumentRoot "c:/webroot/personal.blog.localhost/www"
CustomLog logs/personal.blog.localhost.access.log combined
ErrorLog logs/personal.blog.localhost.error.log
</VirutalHost>
Save the httpd-vhost.conf file, unzip your WordPress application into your www folder and restart Apache and browse http://personal.blog.localhost.