From owner-freebsd-isp Fri Aug 30 4:58:20 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B12A037B400 for ; Fri, 30 Aug 2002 04:58:16 -0700 (PDT) Received: from hotmail.com (oe72.pav2.hotmail.com [64.4.36.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 685BE43E4A for ; Fri, 30 Aug 2002 04:58:16 -0700 (PDT) (envelope-from unixtools@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 30 Aug 2002 04:58:16 -0700 X-Originating-IP: [202.41.224.36] From: "Unix Tools" To: , "FreeBSD ISP List" References: Subject: Re: HostnameLookups directive not working in vhosts Date: Fri, 30 Aug 2002 05:43:02 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: X-OriginalArrivalTime: 30 Aug 2002 11:58:16.0379 (UTC) FILETIME=[8663D0B0:01C2501C] Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, By default HostnameLookups is OFF So for the virtualhosts which need HostnameLookups On set it else leave it as is and in the main config set HostnameLookups to OFF ----- Original Message ----- From: To: "FreeBSD ISP List" Sent: Sunday, August 18, 2002 02:36 AM Subject: HostnameLookups directive not working in vhosts > > I recently moved a lot of virtual hosts from an old FBSD server running > apache 1.3.12 to a new one running 1.3.26. > > The server has HostNameLookups set to On in the main httpd.conf. In the > virtual hosts conf file (implemented using include/conf), I have a couple > of hosts with the the same directive turned Off. However, the custom logs > for these servers still show lookups unless I turn it off in the main > config. > > I'm pretty sure this was working fine on the old box, which had a > virtually identical config. The apache docs > (http://httpd.apache.org/docs/mod/core.html#hostnamelookups) note that > this can be done in a virtual host config. The vhost config looks like: > > > ServerAdmin webmaster@domain.com > User joeuser > Group vhosts > DocumentRoot /home/servers/domain.com/pages > ServerName domain.com > ServerAlias www.domain.com > HostnameLookups off > CustomLog /home/servers/domain.com/access_log combined > ScriptAlias /cgi-bin/ "/home/servers/domain.com/cgi-bin/" > > > From the main config: > > > AllowOverride all > Options Indexes FollowSymLinks MultiViews ExecCGI IncludesNOEXEC > Order allow,deny > Allow from all > > > Ideas? > > James Smallacombe PlantageNet, Inc. CEO and Janitor > up@3.am http://3.am > ========================================================================= > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message