c0nw0nk nginx-forum at
Fri Dec 16 06:55:07 UTC 2016

Provide your full config please.

Also this error log. [emerg] "if" directive is not allowed here
That means you put the code I provided in a invalid area I would assume not
between location {} or server {} tags as I said.

Posted at Nginx Forum:,271581,271586#msg-271586

More information about the nginx mailing list