多个站点如何在单个IP上面向Internet的同一服务器上运行 [英] How Multiple sites run on same server facing to internet with single IP

查看:79
本文介绍了多个站点如何在单个IP上面向Internet的同一服务器上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我们有一台带IIS的Windows服务器,我们想在我们的服务器上托管多个网站。然后我们做什么。



1)在IIS中创建一个新网站。

2)我们将要求我们的DNS团队创建DNS对于网站,我们向DNS团队提供的唯一输入是服务器IP。

3)然后新网站将自动使用新DNS打开。



如何运作。因为如果有2个网站托管我们(abc.com,abc1.com)都有相同的IP和下面给出的链接我理解是...



http://www.mygreatname.com/how-dns-works/dns-e4.gif

http://s.hswstatic.com/gif/dns-rev-1.gif



在最后一个客户端浏览器上使用IP地址与服务器交互(而IP地址有2个站点托管在同一台服务器上,ip,IIS中的端口)然后



Q1。它如何将正确的站点数据返回给客户端?请描述或给出任何理解的好链接?

Q2。当请求来到服务器NIC端口80然后它在请求标题/数据(IP /网站名称/确定正确的网站的东西)中有什么?



Q3 。如果q2的答案是服务器的IP,那么它是否直接转发到IIS来处理,如果是(如何知道网站客户端请求的位置?)如果没有其他人确认IIS(他需要访问哪个站点) ?





在以上所有问题中,我只有一个问题,但因为我不确定服务器端是什么所以很多问题都出现在我的脑海中,以便将整个过程联系起来。



先谢谢你

If We have a windows server with IIS and We want to host more than one website in our server. Then what we do.

1) Create a new website in IIS.
2) We will ask our DNS team to create a DNS for the site, the only input we provide to DNS team is the IP of server.
3) Then the new website will open automatically with the new DNS.

How this works. because if have 2 sites hosted with us ( abc.com,abc1.com ) both have same IP and as per below given links what i understand is ...

http://www.mygreatname.com/how-dns-works/dns-e4.gif
http://s.hswstatic.com/gif/dns-rev-1.gif

at last client browser interact with the server by using IP Address (while IP address have 2 sites hosted on same server , ip , port in IIS ) then

Q1. how it returns the correct site data to client ? Please describe or give any good link to understand ?
Q2. when request comes to server NIC port 80 then what it has in request header / data ( IP / name of site / Which thing to identofy the correct site )?

Q3. If answer of q2 is IP of server then is it directly forwarded to IIS to handle that if yes ( how iis know where site is client requesting ? ) if NO the who else in between to confirm the IIS ( which site he need to access) ?


In All above question i am having a single question but because i am not sure at server end so lots are questions are emerging in my mind to relate the whole process.

Thanks in Advance

推荐答案

基本上,这个问题在这个答案中有解释: http://serverfault.com/questions/106882/how-do-you-have-one-ip-address-and-many-websites [ ^ ]。br />


-SA
Essentially, this is explained in this answer: http://serverfault.com/questions/106882/how-do-you-have-one-ip-address-and-many-websites[^].

—SA


这篇关于多个站点如何在单个IP上面向Internet的同一服务器上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆