Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Aug 2002 09:36:52 -0400 (EDT)
From:      <up@3.am>
To:        Unix Tools <unixtools@hotmail.com>
Cc:        FreeBSD ISP List <freebsd-isp@FreeBSD.ORG>
Subject:   Re: HostnameLookups directive not working in vhosts
Message-ID:  <Pine.BSF.4.10.10208300935190.47983-100000@richard2.pil.net>
In-Reply-To: <OE724bN9qk8iMnUKBJt00005098@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

I think you misunderstood my query...I had turned it On in the global
config and was trying to turn it Off on a per-vhost basis.  I found the
problem a few days ago...the path to the included conf file was pointing
to the wrong file...doh!

On Fri, 30 Aug 2002, Unix Tools wrote:

> 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: <up@3.am>
> To: "FreeBSD ISP List" <freebsd-isp@FreeBSD.ORG>
> 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:
> >
> > <VirtualHost 111.111.111.111>
> > 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/"
> > </VirtualHost>
> >
> > From the main config:
> >
> > <Directory "/*/servers/">
> >     AllowOverride all
> >     Options Indexes FollowSymLinks MultiViews ExecCGI IncludesNOEXEC
> >     Order allow,deny
> >     Allow from all
> > </Directory>
> >
> > 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
> >
> 

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10208300935190.47983-100000>