Browse Source

添加 'conf.d/default.conf'

fanyijian 3 years ago
parent
commit
7de80abc86
1 changed files with 11 additions and 0 deletions
  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;
+    }
+}