Altering HTTP Headers
ian at 1321.org
Fri Aug 14 03:02:18 MSD 2009
I've migrated from Apache 2 to nginx. Everything is great, except I cannot
figure out how to alter a n HTTP header. Here's what's happening. I'm using
nginx as a reverse proxy. The upstream server sets a cookie using the
Set-Cookie HTTP header. I want to append something to the end of that header
before it gets to the client.
So, upstream server sends
I want it to look like this
How can I do this in nginx? In Apache, here's what I did:
Header edit Set-Cookie $ 'AppendedContent'
Maybe I should mention that I'm doing this because I want to specify the
cookie domain. (I would do this in my upstream server, but it is
Thanks for any tips!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx