Hi JW,

On Friday, November 30, 2001, 1:27:23 PM, you babbled something about:

J> Hey,

J> I've hit a weird one. Most likely I'm just overlooking something but I
J> don't know what, hopefully some one can point it out to me.

J> I have a server running Apache, all setup in the main server section.
J> Just now I tried to add a name based virtual host and the NBVH seems to
J> be "taking over" the main server config. It's pretty weird. In other
J> words, when I request the original _non_ virtual host's URL, I'm getting
J> the pages for the NBVH instead.

OK, here are my assumptions...
1. You have one IP address for all of these hosts (main and otherwise).
Let's define it as 1.2.3.4

2. You have set up DNS to point www.domain.dom to 1.2.3.4. and
www.clickpatroleurope.com as a CNAME or some such.

3. You set up your "main" server using "www.domain.dom"

4. You set up your NBVH as shown below.

BindAddress *
NameVirtualHost 1.2.3.4:80
<VirtualHost 1.2.3.4>
    ServerAdmin [EMAIL PROTECTED]
    DocumentRoot /home/webhome/clickpatrol
    DirectoryIndex cpeindex.php
    ServerName www.clickpatroleurope.com
    ServerAlias clickpatroleurope.com
    ErrorLog logs/clickpatroleurope.com-error_log
    CustomLog logs/clickpatroleurope.com-access_log combined
</VirtualHost>

The problem is that BOTH domains are 1.2.3.4 and so therefore there is no
"undefined" host for the main server to take over on (except for localhost).

So you will need a "_default_" entry and it should go before the other
vhosts.

Hope that helps.

Have fun,
-- 
_________________________________________________________________
 Brian Ashe                     CTO
 [EMAIL PROTECTED]              Dee-Web Software Services, LLC.
 http://www.dee-web.com/
-----------------------------------------------------------------
You don't have to swim faster than the shark...
You just have to swim faster than the people you're with.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to