difficulty adding headers

ura nginx-forum at nginx.us
Fri Jun 27 16:58:17 UTC 2014


also.. since only the headers added via the final location block will be
used, does this then mean that i need to put conditional logic into that
block to check the current url for particular paths - if some headers are
needed for some paths only.. ?

since most of my served items will end in the .php location codeblock, if my
thinking here is correct, i would essentially need to move nearly all of my
existing location config blocks inside the php codeblock and then maybe use
'if' statements to apply headers in appropriate ways.
or am i missing something here?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251236,251244#msg-251244



More information about the nginx mailing list