everything bringing up first virtual host?

everything bringing up first virtual host?

am 14.10.2007 21:35:43 von Hans-Peter Sauer

Any idea why all my domains bring up the first virtual host in the list and
ignore their own virtual host config?.

Re: everything bringing up first virtual host?

am 14.10.2007 23:21:49 von mark

"Mike" wrote in
news:13h4rsvbovvdpd3@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?.
>
>
>
>
>
>
>

Well, should a configuration cause an error, the default is the first
virtual domain in the list. As a way to help debug this create a phoney
virtual host as the first virtual host entry with a distinct index page.
That way you will see that they are not GOING to that host on purpose,
they are doing there by default.

Then find and fix the configuration error.



--

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----

Re: everything bringing up first virtual host?

am 15.10.2007 11:31:15 von Hans-Peter Sauer

"Mike" wrote in message
news:13h4rsvbovvdpd3@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.

Re: everything bringing up first virtual host?

am 15.10.2007 13:44:36 von HansH

"Mike" schreef in bericht
news:13h6crbci2krn25@corp.supernews.com...
> news:13h4rsvbovvdpd3@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.

HansH

Re: everything bringing up first virtual host?

am 15.10.2007 15:06:11 von Hans-Peter Sauer

"HansH" wrote in message
news:47135321$0$237$e4fe514c@news.xs4all.nl...
> "Mike" schreef in bericht
> news:13h6crbci2krn25@corp.supernews.com...
>> news:13h4rsvbovvdpd3@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.
>
> HansH


Example of the first 2. I have changed the domains.


DocumentRoot /usr/local/apache/share/site1
ServerName www.site1 .com
DirectoryIndex index.htm index.html index.php



DocumentRoot /usr/local/apache/share/site2
ServerName www.site2 .com
DirectoryIndex index.htm index.html index.php



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.

I have 10 virtual host domains/websites setup all with their own directors.
All 10 domains will always bring up what ever virtual host document route
directory appears first in the httpd.conf file.

Re: everything bringing up first virtual host?

am 15.10.2007 15:08:32 von mark

"Mike" wrote in
news:13h6pebpn1u2330@corp.supernews.com:

>
> "HansH" wrote in message
> news:47135321$0$237$e4fe514c@news.xs4all.nl...
>> "Mike" schreef in bericht
>> news:13h6crbci2krn25@corp.supernews.com...
>>> news:13h4rsvbovvdpd3@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.
>>
>> HansH
>
>
> Example of the first 2. I have changed the domains.
>
>
> DocumentRoot /usr/local/apache/share/site1
> ServerName www.site1 .com
> DirectoryIndex index.htm index.html index.php
>

>
>
> DocumentRoot /usr/local/apache/share/site2
> ServerName www.site2 .com
> DirectoryIndex index.htm index.html index.php
>

>
>
> 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.
>
> I have 10 virtual host domains/websites setup all with their own
> directors. All 10 domains will always bring up what ever virtual host
> document route directory appears first in the httpd.conf file.
>
>
>
>
>
>

Why do you have a space in site1 .com and site2 .com

THATs why he asked you to post the snippet using the real domain name.
What are you afraid of? That we might actually visit your site?




--

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----

Re: everything bringing up first virtual host?

am 15.10.2007 16:05:09 von HansH

"Mike" 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?

>
> DocumentRoot /usr/local/apache/share/site1
> ServerName www.site1 .com
> DirectoryIndex index.htm index.html index.php
>

>
>
> DocumentRoot /usr/local/apache/share/site2
> ServerName www.site2 .com
> DirectoryIndex index.htm index.html index.php
>

>

Do you have a line like
NameVirtualHost *:80
before those ... 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

Re: everything bringing up first virtual host?

am 15.10.2007 16:41:43 von Hans-Peter Sauer

>
> Do you have a line like
> NameVirtualHost *:80
> before those ... blocks?

Yes but...... it would appear the NameVirtualHost has to match exactly to
that in the
i.e. I had:

NameVirtualHost *
...

I guess i have to use

NameVirtualHost *:80

or
NameVirtualHost *


Thank you for your help. I incorrectly assumed the above was the same
thing. I really apprecaite you taking the time to reply I wouldnt have
spotted the error without your post.