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 /etc/nginx/nginx.conf:82 nginx: configuration file /etc/nginx/nginx.conf test failed so 'if' should be deleted? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,271581,271583#msg-271583