# HG changeset patch # User Robert Casties # Date 1545130383 0 # Node ID 9538e27b5c2f394e714910ff583685541e9e9ce0 # Parent 79c837179ffb377a06c2f3c9db51a8abf05f7fd4 Creating site for 2.6-SNAPSHOT diff -r 79c837179ffb -r 9538e27b5c2f server-setup.html --- a/server-setup.html Tue Dec 18 10:45:17 2018 +0000 +++ b/server-setup.html Tue Dec 18 10:53:03 2018 +0000 @@ -229,13 +229,7 @@ } } -
-

Resources

- -
+

Please check the nginx documentation.

Apache as proxy and load-balancer

This is an example configuration for Apache as a proxy and load balancer for two instances of digilib (one running on localhost, port 8080 and another on otherserver, port 8080), using SSL and http/2:

@@ -294,13 +288,16 @@

Tomcat behind a proxy

When you are using Tomcat as a servlet container behind an Apache or nginx proxy then you should make sure that Tomcat processes the X-Forwarded-* headers from the proxy server to derive the correct request URL for the servlets.

-

Please see the Tomcat documentation about the Remote IP Valve. You basically need to add the following XML tag with your proxy’s IP numbers to the Host tag of your server.xml file: - <Valve className="org.apache.catalina.valves.RemoteIpValve" +

Please see the Tomcat documentation about the Remote IP Valve. You basically need to add the following XML tag with your proxy’s IP numbers to the Host tag of your server.xml file and make sure ProxyPreserveHost is set to on:

+ +
+
+
  <Valve className="org.apache.catalina.valves.RemoteIpValve"
     internalProxies="127\.0\.0\.1|123\.45\.67\.89"
     remoteIpHeader="x-forwarded-for" 
     proxiesHeader="x-forwarded-by" 
     protocolHeader="x-forwarded-proto" />
- and make sure ProxyPreserveHost is set to on.

+