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

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

<site name="Default Web Site" >  
                <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。

IIS恢复Default Web Site的解决方法

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-18
  • 2021-07-10
  • 2021-12-04
  • 2022-01-04
  • 2021-11-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-07
  • 2021-11-10
  • 2021-12-10
相关资源
相似解决方案