Welcome! Log In Create A New Profile

Advanced

Headers set in http {} go missing after setting headers in location {}

March 09, 2013 11:02PM
Here is my nginx configuration http://pastie.org/private/4lceuccm9twmuiozdjnzkg

My nginx -V is:
nginx version: nginx/1.2.7
built by gcc 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC)
TLS SNI support enabled

I noticed that when I had headers (add_header) in the http{ } block, those headers were not being displayed when another add_header was placed in a location{ } block.

How can I have global headers sent to the client, and send additional headers when the client reaches a location block?
SubjectAuthorPosted

Headers set in http {} go missing after setting headers in location {}

nanoMarch 09, 2013 11:02PM

Re: Headers set in http {} go missing after setting headers in location {}

nanoMarch 09, 2013 11:05PM

Re: Headers set in http {} go missing after setting headers in location {}

Francis DalyMarch 10, 2013 06:28AM

Re: Headers set in http {} go missing after setting headers in location {}

nanoMarch 10, 2013 01:49PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 86
Record Number of Users: 2 on November 23, 2014
Record Number of Guests: 377 on November 23, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready