Domain aliasing with different ip addresses

Discussion in 'Apache' started by HotSauce, May 17, 2007.

  1. #1
    Hi everyone.. I'm trying to accomplish something, but unsure if it's possbile:

    I have a dedicated server with two domains setup, domain A and domain B. I have two ip addresses available. domain A is setup with an ip addresses. I wan't domain B to have a different ip address but be an alias to domain A. So if the user enteres domain B on their browser, they are really aliasing domain A--however if they ping domain A and domian B, they would get two different ip addresses. Is this possible?

    I've been trying to get this to work for a while, but have been unsuccessful. Any help would be greatly appreciated. Thanks!
     
    HotSauce, May 17, 2007 IP
  2. Davidj

    Davidj Peon

    Messages:
    124
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It's possible & very easy.
    Just setup the additional IP within the domain's apache virtualhost entry.

    Then you can just change the root folder to point to the other domains' ;)
     
    Davidj, May 21, 2007 IP
    HotSauce likes this.
  3. HotSauce

    HotSauce Peon

    Messages:
    615
    Likes Received:
    124
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks David... I eventually figured it out :)
     
    HotSauce, May 22, 2007 IP