Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Sep 2000 06:57:10 GMT
From:      "Terje Oseberg" <oseberg@hotmail.com>
To:        mustafa@palnet.com, freebsd-questions@FreeBSD.ORG
Subject:   Re: Apache 1.3.12 Virtual Hosts on FreeBSD 4.0 (Fixed!!!!)
Message-ID:  <F176cE1u5YvFPCSIHCq0000a0dd@hotmail.com>

next in thread | raw e-mail | index | archive | help

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" <mustafa@palnet.com>
>To: "Terje Oseberg" <oseberg@hotmail.com>, <freebsd-questions@FreeBSD.ORG>
>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: <F293ok84FTA7OIkUqLp0000502c@hotmail.com>
>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 <oseberg@hotmail.com>
>To: <freebsd-questions@FreeBSD.ORG>
>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
> >
> > <VirtualHost 192.168.1.1>
> > </VirtualHost>
> >
> > <VirtualHost 192.168.1.1>
> >   ServerName www.etiam.net
> >   DocumentRoot /data/web/www.etiam.net
> > </VirtualHost>
> >
> > <VirtualHost 192.168.1.1>
> >   ServerName www.alluent.com
> >   DocumentRoot /data/web/www.alluent.com
> > </VirtualHost>
> >
> > <VirtualHost 192.168.1.1>
> >   ServerName www.fineworks.com
> >   DocumentRoot /data/web/www.fineworks.com
> > </VirtualHost>
> >
> > <VirtualHost 192.168.1.1>
> >   ServerName www.globalgastrohospital.com
> >   DocumentRoot /data/web/www.globalgastrohospital.com
> > </VirtualHost>
> >
> > #######################################################################
> > 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F176cE1u5YvFPCSIHCq0000a0dd>