Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

everything bringing up first virtual host?

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
Virtual Host - Hej Virtual host - what's that mean? I have installed inside intranet. I want that my listen other host inside the intranet for example : gateway! Other users from world not see my server, becouse is inside the intranet. ..

virtual host - Hi, I'm a newbie on Apache, so I need help for the of Virtual Hosts. My english is bad, I'm sorry and I hope you can me... I've seen the and I've tried many times but my doesn't works... I've a lots..

Virtual Host - Does anyone have any idea why this isn't working? The following virtual host info in my works when I have someone try it from my IP (I assume cause it's the default ), but not when I try the domain or it's aliases. ..

Virtual host and cgi Help - iam running slackware 9.0 and apache1.3 i have set up and have 2 domains on my server, one of my canīt execute cgi, the other can. I get this in my error.log execCGI is off in this Please..

Virtual host - Redhat 9.0 bin]# start [Sun Aug 17 11:53:43 2003] [warn] module is already added, skipping [Sun Aug 17 11:53:43 2003] [warn] module is already loaded, skipping [Sun Aug 17 11:53:43 2003] [warn]
Next:  Apache: pls forgive dumb question (apache - what & why?)  
Author Message
user31

External


Since: Nov 07, 2003
Posts: 31



(Msg. 1) Posted: Sun Oct 14, 2007 6:00 pm
Post subject: everything bringing up first virtual host?
Archived from groups: alt>apache>configuration (more info?)

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

 >> Stay informed about: everything bringing up first virtual host? 
Back to top
Login to vote
Mark

External


Since: Aug 06, 2006
Posts: 47



(Msg. 2) Posted: Sun Oct 14, 2007 6:00 pm
Post subject: Re: everything bringing up first virtual host? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Mike" <me RemoveThis @privacy.net> 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 =----

 >> Stay informed about: everything bringing up first virtual host? 
Back to top
Login to vote
user31

External


Since: Nov 07, 2003
Posts: 31



(Msg. 3) Posted: Mon Oct 15, 2007 6:56 am
Post subject: Re: everything bringing up first virtual host? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Mike" <me DeleteThis @privacy.net> 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.
 >> Stay informed about: everything bringing up first virtual host? 
Back to top
Login to vote
HansH

External


Since: Dec 08, 2006
Posts: 112



(Msg. 4) Posted: Mon Oct 15, 2007 8:56 am
Post subject: Re: everything bringing up first virtual host? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Mike" <me DeleteThis @privacy.net> 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
 >> Stay informed about: everything bringing up first virtual host? 
Back to top
Login to vote
user31

External


Since: Nov 07, 2003
Posts: 31



(Msg. 5) Posted: Mon Oct 15, 2007 9:56 am
Post subject: Re: everything bringing up first virtual host? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"HansH" <hansh.DeleteThis@invalid.invalid> wrote in message
news:47135321$0$237$e4fe514c@news.xs4all.nl...
> "Mike" <me.DeleteThis@privacy.net> 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.

<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>


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.
 >> Stay informed about: everything bringing up first virtual host? 
Back to top
Login to vote
Mark

External


Since: Aug 06, 2006
Posts: 47



(Msg. 6) Posted: Mon Oct 15, 2007 9:57 am
Post subject: Re: everything bringing up first virtual host? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Mike" <me RemoveThis @privacy.net> wrote in
news:13h6pebpn1u2330@corp.supernews.com:

>
> "HansH" <hansh RemoveThis @invalid.invalid> wrote in message
> news:47135321$0$237$e4fe514c@news.xs4all.nl...
>> "Mike" <me RemoveThis @privacy.net> 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.
>
> <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>
>
>
> 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 =----
 >> Stay informed about: everything bringing up first virtual host? 
Back to top
Login to vote
HansH

External


Since: Dec 08, 2006
Posts: 112



(Msg. 7) Posted: Mon Oct 15, 2007 10:58 am
Post subject: Re: everything bringing up first virtual host? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"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? 
Back to top
Login to vote
user31

External


Since: Nov 07, 2003
Posts: 31



(Msg. 8) Posted: Mon Oct 15, 2007 11:58 am
Post subject: Re: everything bringing up first virtual host? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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

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

NameVirtualHost *
<VirtualHost *:80>...

I guess i have to use

NameVirtualHost *:80
<VirtualHost *:80>
or
NameVirtualHost *
<VirtualHost *>

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.
 >> Stay informed about: everything bringing up first virtual host? 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]