xstation nginx-forum at
Fri Dec 16 06:17:43 UTC 2016

thanks for fast reply#
here is what I get

root at mail:~# nginx -t -c /etc/nginx/nginx.conf
nginx: [emerg] "if" directive is not allowed here in
nginx: configuration file /etc/nginx/nginx.conf test failed

so 'if' should be deleted?

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

More information about the nginx mailing list