HAProxy:用 http-response replace-header 替换 rsprep 指令
HAProxy : Replace rsprep directive by http-response replace-header
我继承了一个 运行 版本 1.8 的 haproxy 服务器。将其升级到 2.1 版。 Haproxy 不会重新启动。在日志中发现问题出在配置文件中的这一行:
rsprep ^Set-Cookie:\ (.*) Set-Cookie:\ ;\ Secure
错误是
The 'rsprep' directive is not supported anymore since HAProxy 2.1. Use
'http-response replace-header' instead
删除了 rsprep
并且成功了。但我现在很想知道它可能会产生什么影响。如何使用 http-response replace-header
?
替换上述配置
我继承了一个 运行 版本 1.8 的 haproxy 服务器。将其升级到 2.1 版。 Haproxy 不会重新启动。在日志中发现问题出在配置文件中的这一行:
rsprep ^Set-Cookie:\ (.*) Set-Cookie:\ ;\ Secure
错误是
The 'rsprep' directive is not supported anymore since HAProxy 2.1. Use 'http-response replace-header' instead
删除了 rsprep
并且成功了。但我现在很想知道它可能会产生什么影响。如何使用 http-response replace-header
?