Welcome! Log In Create A New Profile

Advanced

Re: add_header is not working in certain locations

August 14, 2014 10:16AM
Actually, the second problem is described in this document too, I think I should re-read it every time I want to use IF.
In my example (before posting it here) I've dropped the second IF in the same location without much thought.
That's why it worked for you. That's why it worked in a separate location - I didn't move a second IF there, and again, did not pay enough attention to that.

So, the problem was the second IF in the same location. This is really not an easy thing to understand, so it should be the sole recommendation of denying IFs on the top of rewrite module documentation :)

Francis Daly Wrote:

> http://wiki.nginx.org/IfIsEvil for details.
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

add_header is not working in certain locations

bodomic August 13, 2014 02:28AM

Re: add_header is not working in certain locations

Francis Daly August 13, 2014 07:34PM

Re: add_header is not working in certain locations

bodomic August 14, 2014 08:50AM

Re: add_header is not working in certain locations

itpp2012 August 14, 2014 09:24AM

Re: add_header is not working in certain locations

bodomic August 14, 2014 10:07AM

Re: add_header is not working in certain locations

bodomic August 14, 2014 10:16AM

Re: add_header is not working in certain locations

Francis Daly August 14, 2014 01:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 70
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready