From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 7 08:04:16 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A193E16A4DD for ; Thu, 7 Sep 2006 08:04:16 +0000 (UTC) (envelope-from riemer@palstra.com) Received: from palstra.com (palstra.com [82.201.5.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 431DA43D45 for ; Thu, 7 Sep 2006 08:04:16 +0000 (GMT) (envelope-from riemer@palstra.com) Received: from riemer by palstra.com with local (Exim 4.60 (FreeBSD)) (envelope-from ) id 1GLErv-000Oav-Eu; Thu, 07 Sep 2006 10:04:15 +0200 Date: Thu, 7 Sep 2006 10:04:15 +0200 From: Riemer Palstra To: Mauro Bisiani Message-ID: <20060907080415.GB71602@rb1.palstra.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Cc: freebsd-hackers@freebsd.org Subject: Re: Apache not binding X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Sep 2006 08:04:16 -0000 On Thu, Sep 07, 2006 at 09:51:48AM +0200, Mauro Bisiani wrote: > I have recentrly installed Apache 1.3+SSL from the port collection. > When it run locally everything is ok. But when I try to bind my public > IP I get the following error message in the apache log file: > > [crit] (49) Can't assign requested address: make_sock: could not bind > to address > > I have a LAN with an Atlantis router. I have set the router'virtual > server's rules so that the ports 80 and 443 are redirected to the > machine with the web server, and also I have set DMZ with that host > private IP. If you have a router, isn't the public ip address you want to bind to on the router, and not on the webserver machine? In any case, run 'ifconfig -a' and see if the ip address you want to bind to is actually in the output. If not, you probably want Apache to bind on the private ip address you are forwarding the requests to. -- Riemer Palstra Amsterdam, The Netherlands riemer@palstra.com http://www.palstra.com/