We have an application that cares about the order of cookie headers. It shouldn’t, since this isn’t mandated by the standards and indeed we’re getting the headers in various different orders
So we would like to rewrite the headers in Apache so that the cookie headers always appear in a specific order. Is there any way of doing this?
An ideal solution would be specifically about cookie headers, but something that lets us mess with the header order more generally would do too.
Short of writing your own apache module, I don’t think this can be done. There’s mod_headers which will let you add/modify existing headers, but I don’t think it provides the functionality to do what you want.
You may want to ask this question on serverfault as well, you may have better luck there.