From owner-freebsd-questions@FreeBSD.ORG Wed Jan 9 16:11:43 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C491416A469 for ; Wed, 9 Jan 2008 16:11:43 +0000 (UTC) (envelope-from zbigniew@szalbot.homedns.org) Received: from lists.lc-words.com (lists.lc-words.com [83.19.156.210]) by mx1.freebsd.org (Postfix) with ESMTP id E421113C4D3 for ; Wed, 9 Jan 2008 16:11:42 +0000 (UTC) (envelope-from zbigniew@szalbot.homedns.org) Received: from localhost (localhost.szalbot.homedns.org [127.0.0.1]) by lists.lc-words.com (Postfix) with ESMTP id A54A53F449; Wed, 9 Jan 2008 17:11:34 +0100 (CET) Received: from lists.lc-words.com ([127.0.0.1]) by localhost (szalbot.homedns.org [127.0.0.1]) (amavisd-maia, port 10026) with ESMTP id 07972-04; Wed, 9 Jan 2008 17:11:34 +0100 (CET) Received: from [192.168.11.100] (87-205-239-4.adsl.inetia.pl [87.205.239.4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.lc-words.com (Postfix) with ESMTP id 8FE3B3F405; Wed, 9 Jan 2008 17:11:33 +0100 (CET) Message-ID: <4784F23A.9060301@szalbot.homedns.org> Date: Wed, 09 Jan 2008 17:11:38 +0100 From: zbigniew szalbot User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Schiz0 References: <4784EF9C.8040307@szalbot.homedns.org> <8d23ec860801090803v53b19441h37f75b03324a5adf@mail.gmail.com> In-Reply-To: <8d23ec860801090803v53b19441h37f75b03324a5adf@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: apache virtual directories / VirtualHost overlap X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jan 2008 16:11:43 -0000 Hello, Schiz0 pisze: > On Jan 9, 2008 11:00 AM, zbigniew szalbot wrote: > > Hello, > > > > Can you help me solve what probably is a very simple problem with > > virtual directories. I need to define two different virtual hosts for > > the same IP. > > > > So I defined: > > > > NameVirtualHost 83.19.156.210 > > > > > > ServerAdmin webmaster@dummy-host.example.com > > DocumentRoot /usr/local/www/data/ > > ServerName lists.lc-words.com > > ErrorLog /var/log/httpd-error.log > > CustomLog /var/log/httpd-access.log common > > > > > > > > ServerAdmin webmaster@dummy-host.example.com > > DocumentRoot /usr/local/www/data/blog/ > > ServerName blog.lc-words.com > > ErrorLog /var/log/httpd-error.log > > CustomLog /var/log/httpd-access.log common > > > > > > However, when I restart apache, I get: > > [Wed Jan 09 16:59:34 2008] [warn] _default_ VirtualHost overlap on port > > 80, the first has precedence > > > > What do I need to change to make it right? > > > > Many thanks! > > > > Zbigniew Szalbot > > _______________________________________________ > > Try adding the port to the IP addresses. For example: > > NameVirtualHost 83.19.156.210:80 > > And also for the other VirtualHost block too. > I actually solved it by following advice from: http://httpd.apache.org/docs/2.0/vhosts/name-based.html However, the problem is that the blog.lc-words.com does not serve the site I want it to serve. But instead serves the default site which is lists.lc-words.com Thanks! ZS