shimmyshack a écrit :
> On 11 Feb, 10:46, "JoeSmoe" <JoeS....TakeThisOut@hotmail.com> wrote:
>> Hi,
>>
>> Can anyone tell me why my virtual hosts configuration will not work?
>> It worked fine on my old test box just not this one!
>>
>> I am able to ping subDomain2 but not the main domain or subdomain1 as they
>> time out...
>>
>> Any help would be kindly appreciated
>>
>> Joe
>>
>> NameVirtualHost *
>>
>> <VirtualHost *>
>> ServerNamewww.mydomain.dyndns.biz
>> DocumentRoot C:/www/webroot
>> DirectoryIndex index.html index.php
>> </VirtualHost>
>>
>> <VirtualHost *>
>> ServerNamewww.mysubdomain1.mydomain.dyndns.biz
>> DocumentRoot C:/www/webroot/subdomain1
>> DirectoryIndex index.html index.php
>> </VirtualHost>
>>
>> <VirtualHost *>
>> ServerNamewww.mysubdomain2.mydomain.dyndns.biz
>> DocumentRoot C:/www/webroot/subdomain2
>> DirectoryIndex index.html index.php
>> </VirtualHost>
>
> pinging is just a network thing, and happens on a port that apache
> isnt listening on, so its to the network setup you should go. (usually
> the hosts file or the local DNS server if you have one)
>
> provided all those hosts point to the IP on which apache is listening
> you will be able to ping, and then when you requests data from the
> ports apache is listening on, she will answer.
>
> To find out i fyou have the network setup correctly try
> nslookup subdomain
> if it returns the IP address to which apache is bound for all hosts
> you want apache to answer to, great, if not, you will have to hard
> code the hosts file.
>
Hi,
May I suggest another test, just to make sure that your new machine is
working fine:
Add in ONE of your Virtualhost the line :
'ServerAlias localhost'
then restart your Httpd service and try
http://localhost
If you do this on all your virtual host, you can check that your HTTP
services is listening correctly.
If so, that sounds NOT to come from your Apache configuration, but maybe
from your Domaine name provider (that is the problem I had last week)
As said Shimmyshack, this could your DNS setting..
Make sure that your domaine or Subdomain redirect to your IP address AND
that the DNS address is also your IP address
I hope this help
Stephane
>> Stay informed about: Virtual Host Configuration problems