aboutsummaryrefslogtreecommitdiff
path: root/services/templates/nginx/conf.d/forbid_unknown_domain.conf
diff options
context:
space:
mode:
Diffstat (limited to 'services/templates/nginx/conf.d/forbid_unknown_domain.conf')
-rw-r--r--services/templates/nginx/conf.d/forbid_unknown_domain.conf9
1 files changed, 9 insertions, 0 deletions
diff --git a/services/templates/nginx/conf.d/forbid_unknown_domain.conf b/services/templates/nginx/conf.d/forbid_unknown_domain.conf
new file mode 100644
index 0000000..515942b
--- /dev/null
+++ b/services/templates/nginx/conf.d/forbid_unknown_domain.conf
@@ -0,0 +1,9 @@
+server {
+ listen 80 default_server;
+ listen [::]:80 default_server;
+ listen 443 ssl default_server;
+ listen [::]:443 ssl default_server;
+ http2 on;
+
+ return 444;
+}