Wamp Server: Multiple Virtual Hosts are not working on Windows.

Posted by Awan on Stack Overflow See other posts from Stack Overflow or by Awan
Published on 2010-03-27T18:26:44Z Indexed on 2010/03/27 18:33 UTC
Read the original article Hit count: 432

I have two virtual hosts on windows(for example: test1.dev and test2.dev). But it always load content of test1.dev for both virtual hosts.

Following are my files:

hosts:

127.0.0.1    localhost
127.0.0.1 test1.dev
127.0.0.1 test2.dev

httpd.conf:

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

Include "c:/wamp/alias/*"

<VirtualHost 127.0.0.1>
    ServerName test1.dev
    DocumentRoot "C:\wamp\www\test1\public"
</VirtualHost>

<VirtualHost 127.0.0.1>
    ServerName test2.dev
    DocumentRoot "C:\wamp\www\test2\public"
</VirtualHost>

Can someone recognize the problem ?

© Stack Overflow or respective owner

Related posts about wamp

Related posts about wampserver