From owner-freebsd-questions Wed Sep 6 23:57:17 2000 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (f176.law8.hotmail.com [216.33.241.176]) by hub.freebsd.org (Postfix) with ESMTP id 6F12037B422 for ; Wed, 6 Sep 2000 23:57:13 -0700 (PDT) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 6 Sep 2000 23:57:13 -0700 Received: from 204.179.130.107 by lw8fd.law8.hotmail.msn.com with HTTP; Thu, 07 Sep 2000 06:57:10 GMT X-Originating-IP: [204.179.130.107] From: "Terje Oseberg" To: mustafa@palnet.com, freebsd-questions@FreeBSD.ORG Subject: Re: Apache 1.3.12 Virtual Hosts on FreeBSD 4.0 (Fixed!!!!) Date: Thu, 07 Sep 2000 06:57:10 GMT Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 07 Sep 2000 06:57:13.0299 (UTC) FILETIME=[D9B50A30:01C01898] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Well, as you probably know, 192.168.1.1 is not a routable IP number. It's actually the interal IP number for the server which I'm running Apache. The external IP number is 216.15.83.94 which is routable. When I telnet to 216.15.83.94 port 80, Apache apparently believes that I'm connected to port 80 on 192.168.1.1 This is of course wrong, but it's what FreeBSD 4.0 is telling Apache. Therefor it was necessary to tell Apache in the config file to place it's name virtual hosts on the interal IP numbers rather than on the interal IP numbers. Probably the reason that this hasn't come up before is that probably I'm the only one running Apache on a firewall that has only one NIC and am using name virtual hosts. Terje >From: "Mustafa N. Deeb" >To: "Terje Oseberg" , >Subject: Re: Apache 1.3.12 Virtual Hosts on FreeBSD 4.0 (Fixed!!!!) >Date: Thu, 7 Sep 2000 09:05:32 +0200 >MIME-Version: 1.0 >Received: from [192.116.19.220] by hotmail.com (3.2) with ESMTP id >MHotMailBB807B5F0029D82197A2C07413DC05670; Wed Sep 06 23:06:26 2000 >Received: from plapla (mustafa.palnet.com [192.116.17.10])by >mail.palnet.com (8.9.3/8.9.3) with SMTP id IAA50085;Thu, 7 Sep 2000 >08:09:26 +0200 (IST) >From mustafa@palnet.com Wed Sep 06 23:08:56 2000 >Message-ID: <005d01c0189a$0479df60$0a1174c0@palnet.com> >References: >X-Priority: 3 >X-MSMail-Priority: Normal >X-Mailer: Microsoft Outlook Express 5.00.2314.1300 >X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 > >what wrong in that ? >----- Original Message ----- >From: Terje Oseberg >To: >Sent: Thursday, September 07, 2000 3:40 AM >Subject: Re: Apache 1.3.12 Virtual Hosts on FreeBSD 4.0 (Fixed!!!!) > > > > You're probably not going to believe this, but, > > Uhh, I added this to the end of my httpd.conf > > file and it started working!! > > > > ################################################################ > > NameVirtualHost 192.168.1.1 > > > > > > > > > > > > ServerName www.etiam.net > > DocumentRoot /data/web/www.etiam.net > > > > > > > > ServerName www.alluent.com > > DocumentRoot /data/web/www.alluent.com > > > > > > > > ServerName www.fineworks.com > > DocumentRoot /data/web/www.fineworks.com > > > > > > > > ServerName www.globalgastrohospital.com > > DocumentRoot /data/web/www.globalgastrohospital.com > > > > > > ####################################################################### > > I also added this to my /etc/hosts file to prevent Apache from > > attempting a reverse DNS lookup or whatever it was that took so > > long: > > > > 192.168.1.1 me.etiam.net > > >_________________________________________________________________________ > > Get Your Private, Free E-mail from MSN Hotmail at >http://www.hotmail.com. > > > > Share information about yourself, create your own public profile at > > http://profiles.msn.com. > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-ports" in the body of the message > > > > > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message