iis中配置多个网站,不单独配置端口的方法
2009-04-07 22:40
411 查看
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
# 顶级域名
127.0.0.1 spicery.com #spicery.com
127.0.0.1 testweb.com
# 主机头
127.0.0.1 test.m.b2c.testweb.com
127.0.0.1 test.ht.b2c.testweb.com
127.0.0.1 test.b2c.testweb.com
127.0.0.1 b2c.spicery.com
127.0.0.1 temp.spicery.com
#通过这样设置可以使iis不需要对每个网站设定端口,只需要配置相关主机头即可!
#文件位置:C:\Widows\System32\Drvers\Etc
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
# 顶级域名
127.0.0.1 spicery.com #spicery.com
127.0.0.1 testweb.com
# 主机头
127.0.0.1 test.m.b2c.testweb.com
127.0.0.1 test.ht.b2c.testweb.com
127.0.0.1 test.b2c.testweb.com
127.0.0.1 b2c.spicery.com
127.0.0.1 temp.spicery.com
#通过这样设置可以使iis不需要对每个网站设定端口,只需要配置相关主机头即可!
#文件位置:C:\Widows\System32\Drvers\Etc
相关文章推荐
- Apache配置多个监听端口和不同的网站目录的简单方法
- 如何制作一个 https 网站?IIS配置HTTPS服务的方法 https配置
- Apache配置多个监听端口和不同的网站目录的简单方法
- Apache配置多个监听端口和不同的网站目录的简单方法(转)
- win2003 配置DNS、NAT及搭建IIS网站的方法
- 在配置win7 IIS浏览网站时 检测到在集成的托管管道模式下不适用的ASP.NET设置 的解决方法
- Apache配置多个监听端口和不同的网站目录的简单方法
- .NET4.0下网站应用程序用UrlRewriter.dll重写无后缀路径 (在IIS7.5中的配置方法)
- IIS 配置ASP网站出现的问题和解决方法
- Win7/Win2008下IIS配置Asp网站启用父路径的设置方法(已解决)
- apache不同端口访问不同网站 配置方法
- 如何制作一个 https 网站?IIS配置HTTPS服务的方法
- Apache配置多个监听端口和不同的网站目录的简单方法
- 配置DNS、NAT及搭建IIS网站的方法
- Apache配置多个监听端口和不同的网站目录的简单方法
- 如何制作一个 https 网站?IIS配置HTTPS服务的方法
- 如何制作一个 https 网站?IIS配置HTTPS服务的方法
- Apache能否像IIS一样配置多端口多网站呀?……当然能啦,而且比IIS强多了!
- Apache配置多个监听端口和不同的网站目录的简单方法
- .NET4.0下网站应用程序用UrlRewriter.dll重写无后缀路径 (在IIS7.5中的配置方法)