From 082298aa45143e5c52d5a961f306a77f32494f4e Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 10 May 2016 10:06:17 +0100 Subject: [PATCH] templates --- share/templates/lb.apache | 11 +++++++++++ share/templates/lb.nginx | 12 ++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 share/templates/lb.apache create mode 100644 share/templates/lb.nginx 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; + } +} -- 2.47.3