我正在尝试修改 cookie 对其有效的域mod_headers
:
从:
ipa_session=e88331a44e20d8b5caaacb0e896029fe; Domain=internal.example.com; Path=/ipa; Expires=Tue, 13 Dec 2016 09:31:33 GMT; Secure; HttpOnly
至:ipa_session=e88331a44e20d8b5caaacb0e896029fe; Domain=example.com; Path=/ipa; Expires=Tue, 13 Dec 2016 09:31:33 GMT; Secure; HttpOnly
Mod-headers 运行良好,这些规则有效:
Header set "something" "something"
Header edit "something" "something" "somethingdifferent"
但是编辑“Set-Cookie”标题什么也没做:
Header edit "Set-Cookie" "Domain=internal.example.com" "Domain=example.com"
Apache 语法没问题,但规则什么也不做。
Apache包版本:2.4.18-2ubuntu3.1