This is the default example configuration of default.conf provided by nginx. This config file was generated by nginx running on Alpine 3.
It is located under: /etc/nginx/conf.d/default.conf
# This is a default site configuration which will simply return 404, preventing
# chance access to any other virtualhost.
server {
listen 80 default_server;
listen [::]:80 default_server;
# Everything is a 404
location / {
return 404;
}
# You may need this to prevent return 404 recursion.
location = /404.html {
internal;
}
}
Download the raw file with wget or curl
wget -O default.conf.example http://exampleconfig.com/static/raw/nginx/alpine3/etc/nginx/conf.d/default.conf
curl http://exampleconfig.com/static/raw/nginx/alpine3/etc/nginx/conf.d/default.conf > default.conf.example
Other config files you might find useful