Mercurial > hg > digilib
changeset 1701:9538e27b5c2f
Creating site for 2.6-SNAPSHOT
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 18 Dec 2018 10:53:03 +0000 |
parents | 79c837179ffb |
children | |
files | server-setup.html |
diffstat | 1 files changed, 7 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ } } </pre></div></div> -<div class="section"> -<h3><a name="Resources"></a>Resources</h3> - -<ul> - -<li>the <a href="nginx.org/en/docs/">nginx documentation</a></li> -</ul></div></div> +<p>Please check the <a href="nginx.org/en/docs/">nginx documentation</a>.</p></div> <div class="section"> <h2><a name="Apache_as_proxy_and_load-balancer"></a>Apache as proxy and load-balancer</h2> <p>This is an example configuration for <a class="externalLink" href="https://httpd.apache.org/">Apache</a> 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:</p> @@ -294,13 +288,16 @@ <div class="section"> <h2><a name="Tomcat_behind_a_proxy"></a>Tomcat behind a proxy</h2> <p>When you are using <a class="externalLink" href="https://tomcat.apache.org">Tomcat</a> as a servlet container behind an Apache or nginx proxy then you should make sure that Tomcat processes the <tt>X-Forwarded-*</tt> headers from the proxy server to derive the correct request URL for the servlets.</p> -<p>Please see the Tomcat documentation about the <a class="externalLink" href="https://tomcat.apache.org/tomcat-9.0-doc/config/valve.html#Remote_IP_Valve">Remote IP Valve</a>. You basically need to add the following XML tag with your proxy’s IP numbers to the <tt>Host</tt> tag of your <tt>server.xml</tt> file: <tt> - <Valve className="org.apache.catalina.valves.RemoteIpValve" +<p>Please see the Tomcat documentation about the <a class="externalLink" href="https://tomcat.apache.org/tomcat-9.0-doc/config/valve.html#Remote_IP_Valve">Remote IP Valve</a>. You basically need to add the following XML tag with your proxy’s IP numbers to the <tt>Host</tt> tag of your <tt>server.xml</tt> file and make sure <tt>ProxyPreserveHost</tt> is set to <tt>on</tt>:</p> + +<div class="source"> +<div class="source"> +<pre> <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" /> -</tt> and make sure <tt>ProxyPreserveHost</tt> is set to <tt>on</tt>.</p></div> +</pre></div></div></div> </div> </div> </div>