This is not the hardest process once it’s running and I am certainly not an expert of Apache settings but I have gotten this to work quite well over the last two years and now here are the settings that work for me.
The first setting can be added under “Listen 80″ if your server runs port 80 of course…
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot c:\apache\htdocs\ilertech
ServerName ilertech.com
ServerAlias ilertech.com *.ilertech.com
</VirtualHost>
Uncomment this module for alias to work:
LoadModule vhost_alias_module modules/mod_vhost_alias.so
Note you can run as many websites as you like
<VirtualHost *:80>
DocumentRoot c:\apache\htdocs\ilertech
ServerName ilertech.com
ServerAlias ilertech.com *.ilertech.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot c:\apache\htdocs\othersite
ServerName othersite.com
ServerAlias othersite.com *.othersite.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot c:\apache\htdocs\onemore
ServerName onemore.com
ServerAlias onemore.com *.onemore.com
</VirtualHost>
Don’t forget to add your sites to your DNS or HOST file
Location of your windows host file:
C:\WINDOWS\system32\drivers\etc\hosts
