Parcourir la source

添加 'conf.d/default.conf'

fanyijian il y a 3 ans
Parent
commit
7de80abc86
1 fichiers modifiés avec 11 ajouts et 0 suppressions
  1. 11 0
      conf.d/default.conf

+ 11 - 0
conf.d/default.conf

@@ -0,0 +1,11 @@
+server {
+    listen       80 default;
+    # 禁止IP访问及未绑定的域名跳转
+    location = /healthz {
+        access_log off;
+        return 200;
+    }
+    location / {
+    	return 403;
+    }
+}