default.conf (342B)
1 # This is a default site configuration which will simply return 404, preventing 2 # chance access to any other virtualhost. 3 4 server { 5 listen 80 default_server; 6 listen [::]:80 default_server; 7 8 # Everything is a 404 9 location / { 10 return 404; 11 } 12 13 # You may need this to prevent return 404 recursion. 14 location = /404.html { 15 internal; 16 } 17 }