Open dartyun opened 5 years ago
Got the same problem. Cannot use more_set_headers in a if statement defined in an included conf file.
I get this error :
nginx: [emerg] "more_set_headers" directive is not allowed here
Ok actually I found this in the doc :
I found a problem: if I use the following construction, then the header is missing in the answer:
/etc/nginx/default.d/cors.conf:
The answer is present only the first part to the block 'if'
When using schemes 'include -> more_set_headers' and 'if -> more_set_headers' all heders will be added correctly.
nginx version 1.17.0 headers-more-nginx-module 0.33