IIS恢复Default Web Site的解决方法


1.文件路径C:\Windows\System32\inetsrv\config\applicationHost.config,找到该文件。

2.编辑该文件,找到文件<sites>标签,在其之下添加如下xml段落:

<site name="Default Web Site" id="1">  
                <application path="/">  
                    <virtualDirectory path="/" physicalPath="%SystemDrive%\inetpub\wwwroot" />  
                </application>  
                <bindings>  
                    <binding protocol="net.tcp" bindingInformation="808:*" />  
                    <binding protocol="net.pipe" bindingInformation="*" />  
                    <binding protocol="net.msmq" bindingInformation="localhost" />  
                    <binding protocol="msmq.formatname" bindingInformation="localhost" />  
                    <binding protocol="http" bindingInformation="*:80:" />  
                </bindings>  
 </site>  

注意事项:配置的id不能与已有的site冲突,如已存在则更换其他id。

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM