IIS版本号可以被识别 解决方案

1.在IIS配置文件中进行修改。

借助IIS URL Rewrite Module,添加如下的重写规则:

<rewrite>
    <allowedServerVariables>
        <add name="REMOTE_ADDR" />
    <allowedServerVariables> 
    <outboundRules>
        <rule name="REMOVE_RESPONSE_SERVER">
            <match serverVariable="RESPONSE_SERVER" pattern=".*" />
            <action type="Rewrite" />
        <rule>
    <outboundRules>
<rewrite>

重写规则存放在C:\Windows\System32\inetsrv\config\applicationHost.config中。

网上教程都是搬来搬去,基本上没经过实体测试。这里注意几点:1、要先装url 重写模块

posted @ 2018-04-25 17:01  威流  阅读(747)  评论(0编辑  收藏  举报