From owner-freebsd-questions@FreeBSD.ORG Wed Jan 9 16:00:34 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 40D2B16A421 for ; Wed, 9 Jan 2008 16:00:34 +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 DA7CC13C4E3 for ; Wed, 9 Jan 2008 16:00:33 +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 7D3273F405 for ; Wed, 9 Jan 2008 17:00:24 +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-02 for ; Wed, 9 Jan 2008 17:00:24 +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 C86913F403 for ; Wed, 9 Jan 2008 17:00:23 +0100 (CET) Message-ID: <4784EF9C.8040307@szalbot.homedns.org> Date: Wed, 09 Jan 2008 17:00:28 +0100 From: zbigniew szalbot User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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:00:34 -0000 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