Nginx

Read config file without comments

cat /etc/nginx/nginx.conf | grep -v '\#' | grep .

Check the format of the config file

cat /etc/nginx/sites-enabled/default