Explorar el Código

add nginx conf

vidikon hace 2 años
padre
commit
b124722323
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  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;
+           }