headers-more-nginx-module icon indicating copy to clipboard operation
headers-more-nginx-module copied to clipboard

more_clear_headers in combination with fastcgi_pass in location in if (more_clear_headers in location context is not working)

Open Profforgr opened this issue 8 years ago • 1 comments

Profforgr avatar Mar 27 '16 13:03 Profforgr

@Profforgr Well, "if is evil":

https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/

It's really a bad idea to use the if directive in complex nginx configurations. GIven that you're already using rewrite_by_lua* and alike, you should do branching in your Lua code wherever possible. Lua's if statement is sane.

agentzh avatar Mar 27 '16 17:03 agentzh