[英]IIS Failed Request Tracing to Trace Rewrite Rules: Rewrite and RequestRouting values in the Areas attribute (web.config)
我正在尝试跟踪IIS 中的重写规则。 启用了失败请求跟踪并记录了错误,但我无法获得我想要的信息(重写时我只有原始的 url 而不是最终的 url)。
我想我应该在我的web.config中添加这样的内容:
<add provider="WWW Server" areas="Rewrite,RequestRouting" verbosity="Verbose" />
但无法识别Rewrite和RequestRouting 。
IIS 建议我添加的是那些值:
<add provider="WWW Server" areas="Security,Filter,StaticFile,CGI,Compression,Cache,RequestNotifications,Module,FastCGI,WebSocket" verbosity="Verbose" />
这是我的web.config的示例
<tracing>
<traceFailedRequests>
<add path="*">
<traceAreas>
<add provider="WWW Server" areas="Rewrite,RequestRouting" verbosity="Verbose" />
</traceAreas>
<failureDefinitions timeTaken="00:00:00" statusCodes="404" />
</add>
</traceFailedRequests>
</tracing>
要添加这些项目必须下载https://www.iis.net/downloads/microsoft/url-rewrite并重新安装 rewrite_en-US.msi 模块但到目前为止,此安装仅成功添加了 Rewrite
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.