aboutsummaryrefslogtreecommitdiff
path: root/template/nginx/forbid_unknown_domain.conf
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-11-20 13:37:05 +0800
committercrupest <crupest@outlook.com>2022-11-20 13:37:05 +0800
commit4e6dcdc7c56e65cb8d69e35ec0b0ebc5a47f940c (patch)
treee438ebe543bee5e2afba086609096ec5ef4fc437 /template/nginx/forbid_unknown_domain.conf
parentc20cacc48fde3da0cdb0fbd08184ae5637044c99 (diff)
downloadcrupest-4e6dcdc7c56e65cb8d69e35ec0b0ebc5a47f940c.tar.gz
crupest-4e6dcdc7c56e65cb8d69e35ec0b0ebc5a47f940c.tar.bz2
crupest-4e6dcdc7c56e65cb8d69e35ec0b0ebc5a47f940c.zip
Fix some nginx bugs.
Diffstat (limited to 'template/nginx/forbid_unknown_domain.conf')
-rw-r--r--template/nginx/forbid_unknown_domain.conf8
1 files changed, 8 insertions, 0 deletions
diff --git a/template/nginx/forbid_unknown_domain.conf b/template/nginx/forbid_unknown_domain.conf
new file mode 100644
index 0000000..ae96393
--- /dev/null
+++ b/template/nginx/forbid_unknown_domain.conf
@@ -0,0 +1,8 @@
+server {
+ listen 80 default_server;
+ listen [::]:80 default_server;
+ listen 443 ssl http2 default_server;
+ listen [::]:443 ssl http2 default_server;
+
+ return 444;
+}