大网数据广告活动
网站运营与故障问答

How does multiple domains pointing to one IP address work

· 52CE 我爱测

I see this a lot and I'm not sure how it works, the mechanics behind it. I've been asked if it's possible to host two sites, on the same Windows 2012 server on the same IP address but with different domains. My question is what (…

问题原文

原帖链接 · Alec. · CC BY-SA 3.0

I see this a lot and I'm not sure how it works, the mechanics behind it. I've been asked if it's possible to host two sites, on the same Windows 2012 server on the same IP address but with different domains.

My question is what (and how does it) allows two different websites on the same IP be accessed by two different domains, for example what (and where) is the mechanism that decides www.a.com shows this and www.b.com shows this when the DNS entires for www.a.com and www.b.com are both 80.80.60.100?

已采纳解答

原帖链接 · user1431972 · CC BY-SA 3.0

Because HTTP request sent from browsers includes the host name. The server is able to identify it and serve the respective content.

In our world we have very limited IPV4 addresses but more websites. A web hosting company usually serves over hundreds of websites from the same server (same IP).

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2017-01-11)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。