Date: 3 Nov 2001 22:20:33 -0000 From: "Martin Gignac FreeBSD " <freebsd@mobilitylab.net> To: David Kirchner <davidk@accretivetg.com>, Martin Gignac FreeBSD <freebsd@mobilitylab.net>, <freebsd-questions@FreeBSD.ORG> Subject: Re: Apache not binding to single address... Message-ID: <20011103222033.40328.qmail@mail.mobilitylab.net>
next in thread | raw e-mail | index | archive | help
Your insistance on uncomment all BindAddress and Port directives prompted me to scan my whole httpd.conf file. I found an SSL Support section with two Listen directives (one for port 80 and one for port 443 -- I am running SSL on that server too). I modified the file to look like this: ===== httpd.conf ===== ## ## SSL Support ## ## When we also provide SSL we have to listen to the ## standard HTTP port (see above) and to the HTTPS port ## <IfDefine SSL> Listen 172.20.2.2:80 Listen 172.20.2.2:443 </IfDefine> ===== httpd.conf ===== I restarted Apache and it did the trick. Now the process only listens on 172.20.2.2:80 and 172.20.2.2:443, which is exactly what I wanted. Thanks, -Martin > On 3 Nov 2001, Martin Gignac FreeBSD wrote: > > > 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. > > In my experience, you have to use the Listen directive to do this. You > want to comment out all BindAddress and Port directives, and use: > > Listen 172.20.2.2:80 > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011103222033.40328.qmail>
