Hi,
Edit the Apache configuration file c:\wamp\Apache2\conf\httpd.conf. Find the following two lines :
# Virtual hosts
#Include conf/extra/httpd-vhosts.conf
Uncomment the second line. This line adds the file c:\wamp\Apache2\conf\extra\httpd-vhosts.conf to
the server configuration.
The default configuration file httpd-vhosts.conf has a sample setup for two name-based virtual hosts. The line starting with ServerName specifies the domain which the virtual host serves. The domains can be full domain names, not just subdomains, as long as the domain names get resolved into your public IP address.
If you want to see how the virtual host setup works before going live, you can create dummy domains in the hosts file c:\windows\system32\drivers\etc\hosts in your development environment:
127.0.0.1 www.example.com
127.0.0.1 www.example2.com
127.0.0.1 www.example3.com
Each virtual host can have its own <directory> definition inside the <virtualhost>
tags. As the sample setup shows, it is best to keep the log files for each domain separate.
You can check the syntax of your configuration files by going to the command prompt and running the following command:
c:\wamp\apache2\bin\httpd -t
More information about name-based virtual hosts is available from [
httpd.apache.org]
toivo
Sydney, Australia