"Mike" <me.TakeThisOut@privacy.net> schreef in bericht
news:13h6pebpn1u2330@corp.supernews.com...
>>>> Any idea why all my domains bring up the first virtual host in the list
>>>> and ignore their own virtual host config?.
>>> Anyone?.
>>> All my virtual hosts are setup correctly, i cant understand why all the
>>> domains bring up the first virtual host only.
>> Using IP to adress server (via doamin forwarder)?
>> HTTP/1.0 forced in browser or proxy?
>>
>> Show config snippet and method of access, best using real doainnames.
>>
> Example of the first 2. I have changed the domains.
Unfortunately ... real names would have allowed me -and others- to dig
around
in DNS, view some headers etc. You are two steps away from being left in
space.
Talking about space, those in the domainnames are not for real, right?
> <VirtualHost *:80>
> DocumentRoot /usr/local/apache/share/site1
> ServerName www.site1 .com
> DirectoryIndex index.htm index.html index.php
> </VirtualHost>
>
> <VirtualHost *:80>
> DocumentRoot /usr/local/apache/share/site2
> ServerName www.site2 .com
> DirectoryIndex index.htm index.html index.php
> </VirtualHost>
>
Do you have a line like
NameVirtualHost *:80
before those <VirtualHost *:80>... </VirtualHost> blocks?
Does each /usr/local/apache/share/site? folder hold a unique index.html?
The realnames must match literrally with the domain names registerred.
DNS for those domains do have A records for www?
> If i go to site1 .com or site2 .com it brings up site1 because this is
> the first virtualhost directory in my httpd.conf file. IP address does
> the same.
>
You made requests without www prefixed ...
If domain.tld resolves to the same IP as
www.domain.tld, add a
Serveralias domain.tld
below each ServerName.
How do you 'go to a site' ? What browser or tool, via a proxy or ....
HansH
>> Stay informed about: everything bringing up first virtual host?