After alot of trial and error, I finally got a virtual host working. NOW, I've lost localhost. This is not the first PC I've installed this on, but it is the first Vista.
Anytime I put localhost in first, I couldn't get Apache to restart. I currently have:
<VirtualHost *:80>
ServerName hmecsc
DocumentRoot "c:\\servers\hmecsc"
ServerAdmin webmaster@hmecsc
ErrorLog "C:\xampp\apache\logs\hmecsc.log"
<Directory "c:\servers\hmecsc">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName localhost
DocumentRoot "c:\\xampp\htdocs"
ServerAdmin webmaster@localhost
ErrorLog "C:\xampp\apache\logs\localhost.log"
<Directory "c:\xampp\htdocs">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
The "hmecsc" site works great, but there's no localhost. I rarely use localhost, but I wouldn't like to have some idea why this keeps happening. I have this as my hosts:
127.0.0.1 localhost
127.0.0.1 cdtc (haven't configured yet)
127.0.0.1 hmecsc
#::1 localhost