Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 74357 invoked by uid 500); 1 Mar 2002 08:19:38 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 74346 invoked from network); 1 Mar 2002 08:19:37 -0000 Received: from bull.bourse.ch (HELO bull1.bourse.ch) (194.158.1.1) by daedalus.apache.org with SMTP; 1 Mar 2002 08:19:37 -0000 Received: (from nobody@localhost) by bull1.bourse.ch (8.8.8+Sun/8.8.8) id JAA29157 for ; Fri, 1 Mar 2002 09:19:46 +0100 (MET) X-Authentication-Warning: bull1.bourse.ch: nobody set sender to using -f Received: from trifid2(172.20.196.132) by bull1 via smap (V2.1) id xma029090; Fri, 1 Mar 02 09:19:41 +0100 Received: from regulus.bourse.ch (regulus [172.20.196.148]) by trifid2.bourse.ch (8.8.8+Sun/8.8.8) with ESMTP id JAA02923 for ; Fri, 1 Mar 2002 09:19:41 +0100 (MET) Received: from bourse.ch (localhost [127.0.0.1]) by regulus.bourse.ch (8.9.3+Sun/8.9.3) with ESMTP id JAA15263 for ; Fri, 1 Mar 2002 09:19:41 +0100 (MET) Sender: obo@bourse.ch Message-ID: <3C7F399D.B5B22565@bourse.ch> Date: Fri, 01 Mar 2002 09:19:41 +0100 From: Owen Boyle X-Mailer: Mozilla 4.76 [en] (X11; U; SunOS 5.8 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: users@httpd.apache.org Subject: Re: Not That IP Address! References: <004401c1c08b$b37d3940$a977ca41@hithere> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Lewis Watson wrote: > > Apache gets all the ip addresses on this box except for one that is doing > ftp for my network. So I need to add a Listen directive (right word?) for > each virtual host.... > > DocumentRoot /home/www/user1 > ServerAdmin user1@adomain.com > Listen 111.222.333.444 > blah > blah > > > I was wishing that I would not have to do that but I guess that would be > best..... To be clear: - Apache by default, listens to all active IP addresses (i.e. listed by ifconfig -a) on port 80. - If you want to specify IP addresses, you use "Listen" or "BindAddress". - As soon as you use either of these directives, apache will listen only to specified addresses; the default behaviour is switched off. - BindAddress allows you to listen to only one IP; you can only have one of these directives. - You can have many Listens, apache will listen only to IP addresses specified by these directives. - Therefore if you have several IP addresses and you want servers on some but not others, you should use specify one-by-one the addresses you want to listen to. Addresses which are not defined by a Listen will be ignored. NB: Listen is a server-config directive - it applies to the whole server so you shouldn't put it in a as you have done (it'll work but you're confusing matters...). I find the best self-documenting layout is: > Listen 111.222.333.444 > > DocumentRoot /home/www/user1 > blah > repeated for each VH. NB2 There is no "UnListen" directive - i.e. you can't get the default "listen all addresses" behaviout and then subtract one IP from it... Rgds, Owen Boyle. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org