From owner-freebsd-questions Wed Mar 19 15:34: 1 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C361537B401 for ; Wed, 19 Mar 2003 15:33:59 -0800 (PST) Received: from www.get-linux.org (adsl-64-161-78-226.dsl.lsan03.pacbell.net [64.161.78.226]) by mx1.FreeBSD.org (Postfix) with SMTP id D5AB943F3F for ; Wed, 19 Mar 2003 15:33:58 -0800 (PST) (envelope-from oremanj@www.get-linux.org) Received: (qmail 35653 invoked by uid 1001); 19 Mar 2003 23:35:29 -0000 Date: Wed, 19 Mar 2003 15:35:29 -0800 From: Joshua Oreman To: Ian Larsen Cc: questions@freebsd.org Subject: Re: Problem with apache Message-ID: <20030319233529.GA35594@webserver.get-linux.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Mar 19, 2003 at 08:30:00AM -0500 or thereabouts, Ian Larsen seemed to write: > Thanks Andrey! > > A sockstat on the non-working server showed this: > > www httpd 694 3 tcp6 *:80 *:* > > while the working version shows: > > www httpd 694 3 tcp46 *:80 *:* > > It appears the non-working server is only aware of tcp6 protocol. > Is this a problem with my ethernet config? Other services are using tcp4. > Is there something in the apache configs that would cause this? > This is a known problem with Apache and IPv6. I had it too. There are two solutions: 1) Tell the system to give IPv4 sockets as well as IPv6: # sysctl kern.net.inet6.ip6.v6only=0 2) Tell Apache to listen on IPv4 too: --snip httpd.conf-- # Listen on all IPv4 interfaces Listen 0.0.0.0:80 # If you have an IPv6 address, put the next line in # Listen [your:ip6:addr::here]:80 # Listen on IPv6 loopback Listen [::1]:80 --snip-- > Thanks again, > -Ian Larsen Hope this helps, Josh To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message