This is the default example configuration of default.conf provided by nginx. This config file was generated by nginx running on CentOS 6.
It is located under: /etc/nginx/conf.d/default.conf
#
# The default server
#
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /usr/share/nginx/html;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location / {
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
Download the raw file with wget or curl
wget -O default.conf.example http://exampleconfig.com/static/raw/nginx/centos6/etc/nginx/conf.d/default.conf
curl http://exampleconfig.com/static/raw/nginx/centos6/etc/nginx/conf.d/default.conf > default.conf.example
Other config files you might find useful