首先,在IIS新建一个网站,绑定一个IP
然后找到路径
C:\Windows\System32\inetsrv\config\applicationHost.config (不同服务器路径不同。要找到applicationHost.config)
然后编辑要添加的内容
<binding protocol="http" bindingInformation="*:80:bvxrv.men" />
<binding protocol="http" bindingInformation="*:80:www.bvxrv.men" />
..........................
.............................
找到要添加的位置
<site name="Default Web Site" id="1">
<application path="/">
<virtualDirectory path="/" physicalPath="%SystemDrive%\inetpub\wwwroot" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:80:bvxrv.men" />
<binding protocol="http" bindingInformation="*:80:www.bvxrv.men" />
此处为要添加的地方
........................................
</bindings>
然后保存!
------------------------------------------------------
映射 通配符映射 加上.net2.0
C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll
默认文档修改为:index.aspx