NGINX Configuration - Linux

/etc/nginx/http.d/default.conf

Quick Actions

๐Ÿ“ฅ Download Original default.conf

Configuration File Information

Configuration File Content

/etc/nginx/http.d/default.conf
18 lines
# 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 Commands

default.conf โ€ข

Download the 100% original unaltered configuration file pulled from NGINX

Using wget:

wget -O default.conf.example https://exampleconfig.com/api/v1/config/original/c4759cd2812220ab542317f54fbbe755?hint=default.conf

Using curl:

curl https://exampleconfig.com/api/v1/config/original/c4759cd2812220ab542317f54fbbe755?hint=default.conf > default.conf.example

Related Configuration Files

Technical Details

File Location
/etc/nginx/http.d/default.conf
Platform
Linux
File Size
18 lines
Application
NGINX
MD5 Checksum
c4759cd2812220ab542317f54fbbe755
SHA256 Checksum
f53fd49af9b4bc308653abb85d9989879ce1fb48e43c508f5f45c84f74513865