I'm using xampp. I have windows xp. Apache was working fine until I changed the file C:/xampp/apache/conf/extra/httpd-vhosts.conf
This is what I added:
<Directory C:/vhosts>
Order Deny, Allow
Allow from all
</Directory>
<VirtualHost *:80>
DocumentRoot c:/xampp/htdocs
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot c:/vhosts/phpcs5
ServerName phpcs5
</VirtualHost>
I made sure all other hashes were present except for this one in the same file:
NameVirtualHost *:80
Before doing this, Apache was fine...now it does not work. It starts to run but quickly shuts down. I did create a vhosts folder under C:, and phpcs5 folder under vhosts folder. Localhost was working since Apache was. If Apache is not running surely http://localhost does not either.
I'm really stumped here and about to use virtual hosts in the other way if I can't figure this out.