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

Go to Topic: PreviousNext
Go to: Message ListNew TopicSearchLog InPrint View

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?
Options: ReplyQuote
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 ?
Options: ReplyQuote


Go to: Message ListSearchLog In
Your Name: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.