Re: single box handling multiple ips, how?

From: Lowell Gilbert (freebsd-questions-local_at_be-well.ilk.org)
Date: 02/11/05

  • Next message: Oliver Leitner: "Re: single box handling multiple ips, how?"
    To: Ken Hawkins <ken@rosewoodblues.com>
    Date: 10 Feb 2005 20:54:59 -0500
    
    

    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).

    > 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"


  • Next message: Oliver Leitner: "Re: single box handling multiple ips, how?"

    Relevant Pages

    • Re: IP Alias on Windows XP machine
      ... The machine is running Windows xp professional behind a router with a static ... there is a server on my network which can run DNS. ... Do you Want to access this Apache from internet? ... apache site tells how to set up IP-based virtual hosts, ...
      (microsoft.public.windows.server.dns)
    • Re: DNS for hosting: A or CNAME?
      ... The webmaster sets up his server to answer as the new host ... I make the DNS change ... It's neither odd nor affecting IIS or Apache. ...
      (microsoft.public.inetserver.iis)
    • Re: Rogue PHP file
      ... you finding apache on your box negates about half of my last post. ... not running a public web server on your SBS, then close port 80 to your SBS. ... It appears to have an Apache server listening. ... It is hosted by a local company called tinkergraphics.com / Our DNS is managed by RoadRunner. ...
      (microsoft.public.windows.server.sbs)
    • Re: single box handling multiple ips, how?
      ... > It looks like a DNS map, but that's not what should go in hosts. ... > Don't worry about virtual hosts on Apache until you have the DNS ... > configuring the DNS, which you can test by pinging the distinct DNS ... To unsubscribe, ...
      (freebsd-questions)
    • Re: single box handling multiple ips, how?
      ... > It looks like a DNS map, but that's not what should go in hosts. ... > Don't worry about virtual hosts on Apache until you have the DNS ... > configuring the DNS, which you can test by pinging the distinct DNS ... To unsubscribe, ...
      (freebsd-questions)