This is the default example configuration of nginx.conf provided by nginx. This config file was generated by nginx running on Ubuntu 16.04.
It is located under: /etc/init/nginx.conf
description "nginx - small, powerful, scalable web/proxy server"
start on filesystem and static-network-up
stop on runlevel [016]
expect fork
respawn
pre-start script
[ -x /usr/sbin/nginx ] || { stop; exit 0; }
/usr/sbin/nginx -q -t -g 'daemon on; master_process on;' || { stop; exit 0; }
end script
exec /usr/sbin/nginx -g 'daemon on; master_process on;'
pre-stop exec /usr/sbin/nginx -s quit
Download the raw file with wget or curl
wget -O nginx.conf.example http://exampleconfig.com/static/raw/nginx/ubuntu16.04/etc/init/nginx.conf
curl http://exampleconfig.com/static/raw/nginx/ubuntu16.04/etc/init/nginx.conf > nginx.conf.example
Other config files you might find useful