two webservers in one domain?

Discussion in 'Apache' started by wakeup, Nov 24, 2005.

  1. #1
    Hi
    I'm goint to have two web servers, one linux and another windows. I want have two webs in same domain. I want go to www . mydomain . com and enter to linux webserver, and writing www .mydomain. com/any go to windows webserver. But I want to Url don't change of domainname. I want to It be transparent for users and google robot.
    How can I do it? Could I do it with alias?
    Thanks
     
    wakeup, Nov 24, 2005 IP
  2. frenchmen77

    frenchmen77 Peon

    Messages:
    345
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    its possible you could use a sort of php include script to point to the other domain, but besides that i don't know
     
    frenchmen77, Nov 28, 2005 IP
  3. coredump

    coredump Member

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    You can do it with mod_proxy:
    http :// httpd.apache.org/docs/2.0/mod/mod_proxy.html#proxypass
     
    coredump, Nov 29, 2005 IP
  4. noname

    noname Peon

    Messages:
    26
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i'd reccomend rethinking you design. same hostnames with different content is just asking for trouble.
    if you call them one
    www. domain
    and the other
    www1. domain

    then you can use mod rewrite and do an external redirect. but you can't use mod rewrite if the hostnames are the same.

    __________________
    http://www.apacheforum.com
     
    noname, Nov 29, 2005 IP
  5. frenchmen77

    frenchmen77 Peon

    Messages:
    345
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #5
    better then my idea :)
     
    frenchmen77, Dec 1, 2005 IP
  6. Shoemoney

    Shoemoney $

    Messages:
    4,474
    Likes Received:
    588
    Best Answers:
    0
    Trophy Points:
    295
    #6
    round robin dns is your friend. Dont even do it at the webserver level.
     
    Shoemoney, Dec 1, 2005 IP
  7. jbw

    jbw Peon

    Messages:
    343
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #7
    He does not want to load balance though. So the reverse proxy is probably the best bet, if you can't use subdomains.
     
    jbw, Dec 1, 2005 IP
  8. Shoemoney

    Shoemoney $

    Messages:
    4,474
    Likes Received:
    588
    Best Answers:
    0
    Trophy Points:
    295
    #8
    I see...

    yup reverse proxy
     
    Shoemoney, Dec 1, 2005 IP