Explorar el Código

添加 'conf.d/default.conf'

fanyijian hace 3 años
padre
commit
7de80abc86
Se han modificado 1 ficheros con 11 adiciones y 0 borrados
  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;
+    }
+}