Bläddra i källkod

add nginx conf

vidikon 2 år sedan
förälder
incheckning
b124722323
1 ändrade filer med 9 tillägg och 0 borttagningar
  1. 9 0
      nginx-template.conf

+ 9 - 0
nginx-template.conf

@@ -0,0 +1,9 @@
+  # skip our office router ip or webmaster ip 1.2.3.4
+	  if ($remote_addr != "1.2.3.4") {
+                return 503;
+           }
+
+           error_page 503 @maintenance;
+           location @maintenance {
+                rewrite ^(.*)$ /error503.html break;
+           }