add_header isn't taking effect

Michael Shadle mike503 at
Sun Aug 19 00:33:49 UTC 2012

On Sat, Aug 18, 2012 at 4:46 PM, Francis Daly <francis at> wrote:

> In this location, only this one will apply. In another location, only
> the server-level one will apply.

I expected add_header to be an array item, which it might be, but I
guess I forgot how nginx scope worked.

I wish the scope would be a little looser (something that makes sense
from someone who writes scripts in PHP for a living)

I just got done reading that blog post (source I am too lazy to look
up) explaining scope on variables, and got bit by fastcgi_param scope
in the past the same way.

Oh well. :) It is odd that I get inconsistent results and I *do* seem
to get multiple headers coming through sometimes it seems, even though
it doesn't make sense from the scope level.

More information about the nginx mailing list