Apache 2.2 Windows Virtual Hosts

Discussion in 'Apache' started by hunter2379, Jun 24, 2013.

  1. #1
    Ok so I just installed apache 2.2 on windows server 2008.

    I would like to set it up so if I go to 99.144.79.25(Server IP) I get index1.html.
    If I go to example.com which points to 99.144.79.25 I get index2.html.
    If I go to example3.com which points to 99.144.79.25 I get index3.html.

    So kind of like, if the domain folder is not found on my server, give the page index1.html.
    Is this possible? If so how do I do it?

    In the long run I want to run a bunch of sites with different domains, testing right now though.
     
    hunter2379, Jun 24, 2013 IP
  2. GMF

    GMF Well-Known Member

    Messages:
    855
    Likes Received:
    113
    Best Answers:
    19
    Trophy Points:
    145
    #2
    Yeah, VirtualHosts sound like what you need.

    Not hard to set up with apache, and there are many tutorials around the web. Here is one that looks promising
    http://www.thegeekstuff.com/2011/07/apache-virtual-host/
    Code (markup):
    And one with some examples
    http://httpd.apache.org/docs/current/vhosts/examples.html
    Code (markup):

    Have fun
     
    GMF, Jun 25, 2013 IP