]> git.nbdom.net Git - nb.git/commitdiff
templates
authorNicolas Boisselier <nicolas.boisselier@semantico.com>
Tue, 10 May 2016 09:06:17 +0000 (10:06 +0100)
committerNicolas Boisselier <nicolas.boisselier@semantico.com>
Tue, 10 May 2016 09:06:17 +0000 (10:06 +0100)
share/templates/lb.apache [new file with mode: 0644]
share/templates/lb.nginx [new file with mode: 0644]

diff --git a/share/templates/lb.apache b/share/templates/lb.apache
new file mode 100644 (file)
index 0000000..be7c19a
--- /dev/null
@@ -0,0 +1,11 @@
+<VirtualHost *:80>
+  ServerName <NAME>
+  ServerAlias <NAME>.*
+  <Proxy "balancer://<NAME>">
+    BalancerMember "http://<HOST>" route=1
+    ProxySet stickysession=ROUTEID
+  </Proxy>
+
+  ProxyPass "/" "balancer://<NAME>"
+  ProxyPassReverse "/" "balancer://<NAME>"
+</VirtualHost>
diff --git a/share/templates/lb.nginx b/share/templates/lb.nginx
new file mode 100644 (file)
index 0000000..5bf9c54
--- /dev/null
@@ -0,0 +1,12 @@
+upstream oup-oel-exam-journals {
+    #ip_hash;
+    sticky;
+    server <HOST1>;
+}
+server {
+  server_name <NAME> <NAME>.*;
+  listen 80;
+  location / {
+    proxy_pass http://oup-oel-exam-journals;
+  }
+}