I get error nginx: [emerg] "sub_filter" directive is not allowed here
When I remove the if block, there's no complain or error and Nginx runs fine.
Any idea why this doesn't work?
This email and any attachments are for the sole use of the intended recipients and may be privileged, confidential or otherwise exempt from disclosure under law. Any distribution, printing or other use by anyone other than the intended recipient is prohibited.
If you are not an intended recipient, please contact the sender immediately, and permanently delete this email and its attachments.