From owner-freebsd-questions Sat Nov 3 12:56:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.mobilitylab.net (goldorak.ericsson.ca [192.75.89.161]) by hub.freebsd.org (Postfix) with SMTP id 048AB37B417 for ; Sat, 3 Nov 2001 12:56:21 -0800 (PST) Received: (qmail 39205 invoked by uid 65534); 3 Nov 2001 20:56:19 -0000 Date: 3 Nov 2001 20:56:19 -0000 Message-ID: <20011103205619.39204.qmail@mail.mobilitylab.net> From: "Martin Gignac FreeBSD " To: ravi@cow.org, Martin Gignac FreeBSD , freebsd-questions@FreeBSD.ORG Subject: Re: Apache not binding to single address... X-Mailer: NeoMail 1.25 X-IPAddress: 172.20.2.11 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 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 I've used the Listen directive, as you've suggested: ===== httpd.conf ===== # Listen: Allows you to bind Apache to specific IP addresses and/or # ports, in addition to the default. See also the # directive. # #Listen 3000 #Listen 12.34.56.78:80 Listen 172.20.2.2:80 ===== httpd.conf ===== Unfortunately, here are the results: ===== sockstat ===== su-2.05# sockstat | grep 80 nobody httpd 39142 17 tcp4 *:80 *:* nobody httpd 39142 18 tcp4 172.20.2.2:80 *:* nobody httpd 39141 17 tcp4 *:80 *:* nobody httpd 39141 18 tcp4 172.20.2.2:80 *:* nobody httpd 39140 17 tcp4 *:80 *:* nobody httpd 39140 18 tcp4 172.20.2.2:80 *:* nobody httpd 39139 17 tcp4 *:80 *:* nobody httpd 39139 18 tcp4 172.20.2.2:80 *:* nobody httpd 39138 17 tcp4 *:80 *:* nobody httpd 39138 18 tcp4 172.20.2.2:80 *:* root httpd 39137 17 tcp4 *:80 *:* root httpd 39137 18 tcp4 172.20.2.2:80 *:* ===== sockstat ===== If I've read correctly in the Apache documents, Listen will _add_ a listener, while Bind will _instead_ bind the process to a specific address, which is what I am trying to achieve in this case. -Martin > On Sat, Nov 03, 2001 at 08:26:57PM -0000, Martin Gignac FreeBSD said at one point in time: > > Hi, > > > > I'm running apache+mod_ssl-1.3.20+2.8.4 on a FreeBSD 4.4-STABLE system > > and I'm having a hard time binding the httpd server to a single IP > > address. I currently have many virtual IP addresses assigned to a > > single Ethernet card. > > > [...] > > how about > > # > # Listen: Allows you to bind Apache to specific IP addresses and/or > # ports, in addition to the default. See also the > # directive. > # > #Listen 3000 > #Listen 12.34.56.78:80 > > -r > > > > -- > echo "send pgp key" | mail ravi@cow.org > "I never think of the future. It comes soon enough." > -- Albert Einstein > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message