Welcome! Log In Create A New Profile

Advanced

Re: add_header is not working in certain locations

August 14, 2014 08:50AM
Hi Francis,

Thanks for your thoughtful entry. It seems that it is a cloudy area of buggy 'if' behaviors :)
I've created empty host config with just 'location /' and 'if ... add_header' and proxy_pass - and it works fine.
I'll have to retest this situation on my real server though to find out if my 'issue' is gone.

As for the second case - yes, it looks like the whole set of http://wiki.nginx.org/IfIsEvil#Examples so I think that's the case of buggy behavior too.
I'll try the 'What to do instead' section. But, funny to notice, in my case try_files *does* work, while 'if' does not in the same location.

Config of Nginx for Drupal is here: http://wiki.nginx.org/Drupal
I'm using it literally from there, just trying to add a buggy 'if' here and there.
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: 129
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