aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nginx-naxsi/default.conf
blob: 9ae25d8fcaeda244e6212475cd26dc5ca3aa48cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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;
	}
}