Hello All,<br><br>I&#39;ve migrated from Apache 2 to nginx. Everything is great, except I cannot figure out how to alter a n HTTP header. Here&#39;s what&#39;s happening. I&#39;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.<br>
<br>So, upstream server sends<br><br>Set-Cookie: Name=Value<br><br>I want it to look like this<br><br>Set-Cookie: Name=ValueAppendedContent<br><br>How can I do this in nginx? In Apache, here&#39;s what I did:<br><br>Header edit Set-Cookie $ &#39;AppendedContent&#39;<br>
<br>Maybe I should mention that I&#39;m doing this because I want to specify the cookie domain. (I would do this in my upstream server, but it is difficult/not possible.)<br><br>Thanks for any tips!<br><br>Ian<br>