- Open C:\xampp\apache\conf\extra\httpd-vhosts.conf.
- Un-comment line 19 (
NameVirtualHost *:80). - Add your virtual host (~line 36):
<VirtualHost *:80> DocumentRoot C:\Projects\rekadia\trunk ServerName transitcalculator.localhost <DirectoryC:\Projects\rekadia\trunk> Order allow,deny Allow from all </Directory></VirtualHost> - Open your hosts file (C:\Windows\System32\drivers\etc\hosts).
- Add
127.0.0.1 rekadia.localhost #rekadiato the end of the file (before the Spybot – Search & Destroy stuff if you have that installed).
- Save (You might have to save it to the desktop, change the permissions on the old hosts file (right click > properties), and copy the new one into the directory over the old one (or rename the old one) if you are using Vista and have trouble).
- Restart Apache.
Now you can access that directory by browsing to http://rekadia.localhost/.