iis - 无法在 IIS 8.5 中使用 URLRewrite 删除服务器标头详细信息
问题描述
我有两个关于 URLRewrite 模块的查询。
- 为了从标头中删除服务器信息,我在 IIS8.5 中安装了 URLRewrite 模块并在 web.config 中添加了更改。
<outboundRules rewriteBeforeCache="true">
<rule name="Remove Server header">
<match serverVariable="RESPONSE_Server" pattern=".+" />
<action type="Rewrite" value="" />
</rule>
</outboundRules>
</rewrite>
但我仍然能够看到服务器详细信息。我是否需要在 IIS 中配置这些值才能工作?
- 另外,URLRewrite 会导致响应时间延迟吗?
解决方案
推荐阅读
- laravel - Laravel Spatie 蜜罐包未安装在 Laravel 5.5.49 上
- python - 递归深度优先搜索返回无但可以打印正确的路径
- r - 在 Rmarkdwon 中编译 Latex 文档时读取 md/tex/Rmd 文件时出错
- python - Microsoft Graph API - 获取 Planner 任务 - 权限错误
- ios - 调用之间有延迟的递归函数
- google-apps-script - Google Apps 脚本触发器随机触发
- sql - 将 Tableau 计算字段转换为 SQL 脚本
- arrays - zsh - 仅打印重复的数组
- c++ - 这些 nullptr 在哪里?
- .net-core - CSV Helper 导出 csv 和编码