I'm trying to modify domain for which the cookie is valid with mod_headers
:
From:
ipa_session=e88331a44e20d8b5caaacb0e896029fe; Domain=internal.example.com; Path=/ipa; Expires=Tue, 13 Dec 2016 09:31:33 GMT; Secure; HttpOnly
To:ipa_session=e88331a44e20d8b5caaacb0e896029fe; Domain=example.com; Path=/ipa; Expires=Tue, 13 Dec 2016 09:31:33 GMT; Secure; HttpOnly
Mod-headers is working well, these rules work:
Header set "something" "something"
Header edit "something" "something" "somethingdifferent"
But editing "Set-Cookie" header just does nothing:
Header edit "Set-Cookie" "Domain=internal.example.com" "Domain=example.com"
Apache syntax is OK, but the rule just does nothing.
Apache package version: 2.4.18-2ubuntu3.1