Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Feb 2005 03:09:33 +0100
From:      Oliver Leitner <Shadow333@gmx.at>
To:        freebsd-questions@freebsd.org, Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>, Ken Hawkins <ken@rosewoodblues.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: single box handling multiple ips, how?
Message-ID:  <20050211021505.5AEDF43D31@mx1.FreeBSD.org>
In-Reply-To: <44psz7j1xo.fsf@be-well.ilk.org>
References:  <094c6888335eff7ca415bc1c475e42bb@rosewoodblues.com> <f7723af74e15e9aac414bd9961307d05@rosewoodblues.com> <44psz7j1xo.fsf@be-well.ilk.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 11 February 2005 02:54, Lowell Gilbert wrote:
> Ken Hawkins <ken@rosewoodblues.com> writes:
> > I do not know what the 'web1.a.net.' is about, more specifically he
> > .net"." (dot on the end). i took this for the initial setup that was
> > done on the box' initial entry in the /etc/hosts.
>
> It looks like a DNS map, but that's not what should go in hosts(5).

a view on my /etc/hosts

::1			localhost.localnet localhost
127.0.0.1		localhost.localnet localhost
192.168.xxx.3		thispc.localnet thispc
192.168.xxx.3		thispc.localnet.
192.168.xxx.2		pc02.localnet pc02
192.168.xxx.5		pc03.localnet pc03
192.168.xxx.8		pc04.localnet pc04

>
> > ok what am i doing...
> >
> > I have apache running on the box and would like to use 3 diffferent
> > IP's to try and keep (somewhat separate) the traffic, logging,
> > etc. for the Virtual Hosts that are running there.
> >
> > ultimately I will have;
> >
> > <ip address 1> resolve to -> website 1
> > <ip address 2> resolve to -> website 2
> > <ip address 3> resolve to -> website 3
> >
> > obviously they will bind to the same box but i would like to have them
> > to separate ip's to ease some maintenance on the box, redirect traffic
> > when needed, blah, blah.
> >
> > I know that I can Name more than one VirtualHost ie;
> > NameVirtualHost ???.???.???.151:80
> > NameVirtualHost ???.???.???.152:80
> > NameVirtualHost ???.???.???.153:80
> >
> > and then the normal VirtualHost directive via IP's but I want to make
> > sure that the box will answer to those ip's when we flip the DNS
> > switch.
> >
> > am i making sense? did i leave anything beyond the bind directive's out?
>
> Sure, it makes sense, but you're making it more complicated than you
> need to.  At the very least, you're making the description more
> complicated than you need to.
>
> Don't worry about virtual hosts on Apache until you have the DNS
> configured for the addresses.  And don't worry about the DNS until you
> have all of the IP addresses configured on the relevant interface.
>
> So the first step will be configuring the interface.  Verify this by
> pinging each of the addresses from outside.  The next step will be
> configuring the DNS, which you can test by pinging the distinct DNS
> name for each address in turn.  Then once that is working, you can
> configure Apache to handle IP-based virtual hosts for each address.
>
> Good luck.
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe@freebsd.org"

-- 
By reading this mail you agree to the following:

using or giving out the email address and any 
other info of the author of this email is strictly forbidden.
By acting against this agreement the author of this mail 
will take possible legal actions against the abuse.



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