在 IIS 10 上为 StatusCode 404.20 错误设置默认页面
Set default Page on IIS 10 for Error with StatusCode 404.20
我收到 HTTP 错误 404.20 - 未找到以下 Url。而预期是显示任何自定义错误页面。
https://localhost/mysite/dataw/yyyyy/%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E
404.20错误的意思是Too Many URL Segments
,我发现你截图中要求的URL太长了,你可以通过maxurlSegments 属性.
我收到 HTTP 错误 404.20 - 未找到以下 Url。而预期是显示任何自定义错误页面。
https://localhost/mysite/dataw/yyyyy/%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E%3Cscript%3Ealert%281%29%3C%2fscript%3E
404.20错误的意思是Too Many URL Segments
,我发现你截图中要求的URL太长了,你可以通过maxurlSegments 属性.