/etc/nginx/conf.d/default.conf - Alpine Linux v3

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;
	}
}

    
  

Config Details

Location
/etc/nginx/conf.d/default.conf
Operating system
Alpine Linux v3
Length
17 lines
MD5 checksum
c4759cd2812220ab542317f54fbbe755

Usage

Download the raw file with wget or curl

Wget

wget -O default.conf.example http://exampleconfig.com/static/raw/nginx/alpine3/etc/nginx/conf.d/default.conf

cURL

curl http://exampleconfig.com/static/raw/nginx/alpine3/etc/nginx/conf.d/default.conf > default.conf.example