TECHIES WORLD

For Techs.... Techniques.... Technologies....

CpanelLinux

How to verify the syntax of nginx configuration

We can check the syntax of nginx configuration using the command below.

#/usr/local/nginx/sbin/nginx -t -c /usr/local/nginx/conf/nginx.conf

This will dispay the errors if any.

Otherwise this will give the message "syntax is ok" and "test is successful"

 

Leave a Reply