Well,
I know how to do virtual hosts, but on windows it looks harder to get what i want to.
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "C:/wamp/www/domaindev_com/public"
ServerName domaindev.com
ServerAlias *.domaindev.com
ErrorLog "logs/domaindev_com-error.log"
CustomLog "logs/domaindev_com-access.log" common
</VirtualHost>
And my hosts file:
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
127.0.0.1 localhost
192.168.0.1 domaindev.com
192.168.0.1 www.domaindev.com
C:\Documents and Settings\B>ping domaindev.com
Pinging domaindev.com [192.168.0.1] with 32 bytes of data:
Reply from 192.168.0.1: bytes=32 time<1ms TTL=128
Reply from 192.168.0.1: bytes=32 time<1ms TTL=128
Reply from 192.168.0.1: bytes=32 time<1ms TTL=128
Reply from 192.168.0.1: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:\Documents and Settings\B>ping www.domaindev.com
Pinging www.domaindev.com [192.168.0.1] with 32 bytes of data:
Reply from 192.168.0.1: bytes=32 time<1ms TTL=128
Reply from 192.168.0.1: bytes=32 time<1ms TTL=128
Reply from 192.168.0.1: bytes=32 time<1ms TTL=128
Reply from 192.168.0.1: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
So it looks like it works. But when i try to use the www.domaindev.com in my browser i get a time out or a dns failure...
Any ideas ? Is the ServerAlias option wrong ?
EDIT: Only the domaindev.com is working