IIS恢復Default Web Site的解決方法

1.文件路徑C:\Windows\System32\inetsrv\config\applicationHost.config,找到該文件。app

2.編輯該文件,找到文件<sites>標籤,在其之下添加以下xml段落:tcp

<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。orm

相關文章
相關標籤/搜索