From owner-freebsd-questions@FreeBSD.ORG Wed Jan 9 16:03:22 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 A514B16A469 for ; Wed, 9 Jan 2008 16:03:22 +0000 (UTC) (envelope-from schiz0phrenic21@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.181]) by mx1.freebsd.org (Postfix) with ESMTP id 751A913C455 for ; Wed, 9 Jan 2008 16:03:22 +0000 (UTC) (envelope-from schiz0phrenic21@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so530613waf.3 for ; Wed, 09 Jan 2008 08:03:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=S4/ckU/qAp9plrLGmRSwYdOF3d2yW6LmajNuPAsthZ4=; b=RhhNelQIEPDpJWkdF8YGPhVep79e517BcjXhAP9XLxyF1mP269VvWRENikMBiNre5A3JfVdgN7wgkgJazHT4hBX5BZhqI8ab6z02446RB1mqO/pi8pqwXACMWyNELucPz7mZ718R9XAhBVYYbP8y/IuGWIfu+O2kecZwvbEmt8c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pVzar8X0+SP0jNDq485DuYtLF3E6Ud6Qx2RFDURga2Ajo9ioBjiw+nq9D7nej0s1YsrUJ2nclYVCnAKFoOpg9ualD9Pjoa0buYKSb7WvXHzU3oLk/gFUpyN+DpYwy1IFIADD2Q6EU/jNVnlGaPsaDIhYjgzYB++nJFD3mnQWEYQ= Received: by 10.114.156.1 with SMTP id d1mr983280wae.68.1199894601847; Wed, 09 Jan 2008 08:03:21 -0800 (PST) Received: by 10.114.52.14 with HTTP; Wed, 9 Jan 2008 08:03:21 -0800 (PST) Message-ID: <8d23ec860801090803v53b19441h37f75b03324a5adf@mail.gmail.com> Date: Wed, 9 Jan 2008 11:03:21 -0500 From: Schiz0 To: "zbigniew szalbot" In-Reply-To: <4784EF9C.8040307@szalbot.homedns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4784EF9C.8040307@szalbot.homedns.org> 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:03:22 -0000 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.