headers-more-nginx-module
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)
@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.