访问localhost在IIS 7.5 webserver上显示404。原木在哪里?

时间:2013-10-03 12:06:49

标签: asp.net windows iis iis-7.5 windows-server-2008-r2

想通过

访问本地网站
http://127.0.0.1/
http://localhost/
http://192.x.x.x/  

但是来自任何浏览器的唯一回复是:

HTTP/1.1 404 Not Found
Content-Type: text/html; charset=us-ascii
Server: Microsoft-HTTPAPI/2.0
Date: Thu, 03 Oct 2013 09:38:48 GMT
Connection: close
Content-Length: 315

日志中没有关于请求错误的内容

  %SystemDrive%\inetpub\logs\LogFiles\W3SVC3
  %SystemDrive%\inetpub\logs\FailedReqLogFiles

要解决此问题并访问网站,请在本网站的IIS绑定中添加“localhost”,127 ...页面使用这些本地网址提供。

请求一旦定义了绑定请求,就会到达IIS。

我的问题:在IIS中定义localhost绑定之前,是否有日志或方法来跟踪请求发生的情况?什么回归404?

1 个答案:

答案 0 :(得分:0)

您需要在服务器和站点上启用失败的请求跟踪,并添加跟踪规则以捕获404请求。这将告诉你究竟是什么问题