首先我们找到C:\Windows\System32\inetsrv\config下的applicationHost.config文件,因为文件里面的内容比较多,建议
用EditPlus打开。
在打开后找到<sites></sites>,在将<sites></sites>包含的所有内容替换成以下内容报保存关闭,在打开你的IIS界面即可
看到Default Web Site。
<sites>
<site name="Default Web Site" id="1" serverAutoStart="true">
<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>
<siteDefaults>
<logFile logFormat="W3C" directory="%SystemDrive%\inetpub\logs\LogFiles" />
<traceFailedRequestsLogging directory="%SystemDrive%\inetpub\logs\FailedReqLogFiles" />
</siteDefaults>
<applicationDefaults applicationPool="DefaultAppPool" />
<virtualDirectoryDefaults allowSubDirConfig="true" />
</sites>