This works for me on Trusty with Apache 2.4.7: Header edit Set-Cookie "^(JSESSIONID=.*; Path=^/itrax/irates/)(.*)$" "$1/$2"
# apt-cache policy apache2 apache2: Installed: 2.4.7-1ubuntu4.4 Candidate: 2.4.7-1ubuntu4.4 Version table: *** 2.4.7-1ubuntu4.4 0 500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages 500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages 100 /var/lib/dpkg/status 2.4.7-1ubuntu4 0 500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages ** Changed in: apache2 (Ubuntu) Status: In Progress => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/131512 Title: mod_headers does not support 'edit'. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/131512/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs