我已经写了下面的url重写模块来删除响应头中的服务器版本信息。
<rewrite>
<outboundRules>
<rule name="Remove Server header">
<match filterByTags="None" serverVariable="" pattern=".+" />
<action type="Rewrite" value="" />
</rule>
</outboundRules>
</rewrite>这在正常流程中工作得很好。但是,当呈现错误页面(如500或404)时,我可以看到IIS版本信息。
我也需要知道如何处理这种错误页面的重写。如有任何建议,我们将不胜感激
发布于 2016-11-09 23:24:13
为什么不创建一个自定义的错误页面,这样你就可以让它看起来像你想要的那样
https://stackoverflow.com/questions/40459919
复制相似问题