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: https://forum.nginx.org/read.php?2,271581,271586#msg-271586 _______________________________________________ nginx mailing list [email protected] http://mailman.nginx.org/mailman/listinfo/nginx
