9951 explained code solutions for 126 technologies


nginxHow to validate config


nginx -tctrl + c
nginx -t

will validate current Nginx config file


Usage example

nginx -t
output
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful