Przeglądaj źródła

添加 'conf.d/default.conf'

fanyijian 3 lat temu
rodzic
commit
7de80abc86
1 zmienionych plików z 11 dodań i 0 usunięć
  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;
+    }
+}