valu

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 重写模块

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
  • 2021-12-19
  • 2022-01-21
  • 2022-02-16
  • 2021-07-19
猜你喜欢
  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2021-08-05
  • 2021-04-24
相关资源
相似解决方案