IIS主机头设置[长期不用,防止忘记]
1、首先打开IIS,然后在需要设置的站点上点击鼠标右键--属性。
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='点击在新窗口查看全图/nCTRL+鼠标滚轮放大或缩小';}" border=0>
2、打开属性窗口以后点击<高级>就可以看到主机头列表。
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='点击在新窗口查看全图/nCTRL+鼠标滚轮放大或缩小';}" border=0>
3、点击<添加>,然后输入您需要的主机头(即域名)和端口,IP地址一般不需要设置。
然后<确定>,那么就成功添加了。
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='点击在新窗口查看全图/nCTRL+鼠标滚轮放大或缩小';}" border=0>
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='点击在新窗口查看全图/nCTRL+鼠标滚轮放大或缩小';}" border=0>
4、一个站点可以同时对应多个主机头(即域名),那么无论访问其中哪个,都会访问到这个站点上去。
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='点击在新窗口查看全图/nCTRL+鼠标滚轮放大或缩小';}" border=0>
5、然后把列表中,没有主机头值的那项记录删除,那么以后就只能通过域名访问该站点,不能通过IP进行访问。