Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Apr 2006
    UK, England
    Thanked 0 Times in 0 Posts

    One IP, Multiple websites and 2 servers

    I'm trying to figure out how I would host 20 or so websites using one static IP address and 2 servers, on a network behind a router.

    I think I have edit the Apache config files, but that's driving me crazy. Is there any other easier way?

  • #2
    Super Moderator
    Join Date
    May 2002
    Perth Australia
    Thanked 101 Times in 99 Posts
    Is there any other easier way?
    not really, you need to google for 'virtual host directive' or 'apache virtual hosts' , its really quite easy once you have done it once.

    Your router will need to be setup to forward ports 80 and 443 (if you are using ssl) to the computer running apache, most modem/routers have port forwarding or a DMZ feature.

    You did not mention if you are going to be running DNS and email for these domains etc which is a different/bigger subject.
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #3
    eak is offline
    Regular Coder eak's Avatar
    Join Date
    Jun 2002
    Nashville, TN
    Thanked 26 Times in 26 Posts
    Are you trying to do load balancing or does one server do http and the other mail/mysql/dns?
    eak | "Doing a good deed is like wetting your pants; every one can see the results, but only you can feel the warmth."


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts