introduction screenshots faq forum blog modules components download
Please use the search function and/or read the FAQ first.
-->

apache virtual host



Posted by: panxponx
August 01, 2009 07:23AM
Hi, All

I need help in configuring virtual hosts in easyphp 3.0 installation. I basically know how to set a default virtual host but what happpend is when I set 3 virtual host sample:

<VirtualHost 127.0.0.1>
ServerName sub1.maindom
DocumentRoot "D:/www/project/maindom.sub1"
</VirtualHost>

<VirtualHost 127.0.0.1>
ServerName maindom
DocumentRoot "D:/www/project/maindom"
</VirtualHost>

<VirtualHost 127.0.0.1>
ServerName localhost
DocumentRoot "D:/www"
</VirtualHost>

all I get is web running from D:/www/project/maindom, even when I try to access the localhost which should open D:/www it still open a website from D:/www/project/maindom

Can some one point me where it all go wrong? help?
Posted by: Amour
August 01, 2009 08:02AM
Can you set "NameVirtualHosts *" and change 127.0.0.1 to * for each virtualhost ?
Is it better ?