zhuangxiaodai

Q: websites to the same ip address

How to allocate more than one websites to the same ip address but display different things?

OS X Server

Posted on Apr 25, 2014 7:57 AM

Close

Q: websites to the same ip address

  • All replies
  • Helpful answers

  • by MrHoffman,

    MrHoffman MrHoffman Apr 25, 2014 10:33 AM in response to zhuangxiaodai
    Level 6 (15,612 points)
    Mac OS X
    Apr 25, 2014 10:33 AM in response to zhuangxiaodai

    That's called virtual hosting — Apple calls it "sites" — and that is the default behavior of most any modern web server, and it's what OS X Server provides by default.  That is, one IP address, multiple web sites.

     

    Underneath, it's that the web client passes a text string containing the target web site name to the target web server, and the receiving web server looks for that string and uses that to locate and serve up the requested web site, or the default web site, etc., to the requesting web client.