微软在这里列出了IIS http状态代码,包括子状态代码。
在404节有0到20之间的子代码,但在我的日志中,我得到了一个503作为sc-substatus
我找不到任何有关它的信息。 不要混淆标准HTTP 503(服务不可用)状态。
对该网站的快速审查解决了这个问题。 它使用IP Address Restrictions
进行设置,对于不是来自允许的IP地址的每个请求,将logging404.503。
通常会发送403(禁止)状态,但是在IIS 7+中,您可以指定要返回的状态。 在IP限制的“编辑function设置”中,select“拒绝操作types”:
Unauthorized - results in a 401 Unauthorized - IIS-Logs: 401.503 Forbidden - results in a 403 Forbidden - IIS-Logs: 403.503 NotFound - results in a 404 Not Found - IIS-Logs: 404.503 AbortRequest - results in a Aborted - IIS-Logs: not logged