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?
Subject Author Posted

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

nano March 09, 2013 11:02PM

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

nano March 09, 2013 11:05PM

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

Francis Daly March 10, 2013 06:28AM

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

nano March 10, 2013 01:49PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 268
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready