From 88b4e4514abf5a5a1864edab6a9d5c9aeb9a7819 Mon Sep 17 00:00:00 2001 From: xZero707 Date: Sat, 21 Jan 2023 02:59:27 +0100 Subject: [PATCH] Add http.d directory Missing since e344128779cae9e7d6ba574c6176135953fc1618 --- rootfs/etc/nginx/http.d/default.conf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 rootfs/etc/nginx/http.d/default.conf diff --git a/rootfs/etc/nginx/http.d/default.conf b/rootfs/etc/nginx/http.d/default.conf new file mode 100644 index 0000000..4704a69 --- /dev/null +++ b/rootfs/etc/nginx/http.d/default.conf @@ -0,0 +1,17 @@ +# 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; + } +}