From: Nicolas Boisselier Date: Tue, 10 May 2016 09:06:17 +0000 (+0100) Subject: templates X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=082298aa45143e5c52d5a961f306a77f32494f4e;p=nb.git templates --- diff --git a/share/templates/lb.apache b/share/templates/lb.apache new file mode 100644 index 00000000..be7c19a7 --- /dev/null +++ b/share/templates/lb.apache @@ -0,0 +1,11 @@ + + ServerName + ServerAlias .* + "> + BalancerMember "http://" route=1 + ProxySet stickysession=ROUTEID + + + ProxyPass "/" "balancer://" + ProxyPassReverse "/" "balancer://" + diff --git a/share/templates/lb.nginx b/share/templates/lb.nginx new file mode 100644 index 00000000..5bf9c544 --- /dev/null +++ b/share/templates/lb.nginx @@ -0,0 +1,12 @@ +upstream oup-oel-exam-journals { + #ip_hash; + sticky; + server ; +} +server { + server_name .*; + listen 80; + location / { + proxy_pass http://oup-oel-exam-journals; + } +}