还有就是 一台Window server 上已经有 IIS 了,默认port 80 的request 是通过 router 发到Win server 的 内网 IP的。我又架了台Apache服务器(Linux,所以用虚拟机另架了一台,不同的IP地址)。希望Internet上http://www.mycom.com 到Windows Server 上。 http://demo.mycom.com 到 Apache Server 的 IP 地址上,怎么设?
现在就是port forwarding,通过路由/防火墙 forward不同的port 到不同的ip。不过觉得这只是临时的解决办法,从用户的角度考虑,还是不同的subdomain同样的standard port 80比较好用。作者: BU5TED 时间: 2010-4-27 14:34:24
if thats what you want, first you need to create a dns entry (Host "A" record) for demo.mycom.com which is an entry under the mycom.com zone just like the www entry but may or may not point to the same ip
next you need to create a new website right click websites in iis choose new then website, but you need to specify a host header value for that website (demo.mycom.com)
then go the website properties and edit settings under Home Directory to make content come from same or different directory used by www.mycom.com/demo/ website