comparison doc/src/site/markdown/server-setup.md @ 1699:79b95ce5d315

Small fix to docs.
author Robert Casties <casties@mpiwg-berlin.mpg.de>
date Tue, 18 Dec 2018 12:00:22 +0100
parents 7e4396e467de
children
comparison
equal deleted inserted replaced
1698:7e4396e467de 1699:79b95ce5d315
33 proxy_pass http://localhost:8080; 33 proxy_pass http://localhost:8080;
34 } 34 }
35 } 35 }
36 ``` 36 ```
37 37
38 ### Resources 38 Please check the [nginx documentation](nginx.org/en/docs/).
39
40 - the [nginx documentation](nginx.org/en/docs/)
41 39
42 ## Apache as proxy and load-balancer 40 ## Apache as proxy and load-balancer
43 41
44 This is an example configuration for [Apache](https://httpd.apache.org/) as a proxy and load balancer for two instances of 42 This is an example configuration for [Apache](https://httpd.apache.org/) as a proxy and load balancer for two instances of
45 digilib (one running on localhost, port 8080 and another on otherserver, port 8080), using SSL and http/2: 43 digilib (one running on localhost, port 8080 and another on otherserver, port 8080), using SSL and http/2:
105 When you are using [Tomcat](https://tomcat.apache.org) as a servlet container behind an Apache or nginx proxy then 103 When you are using [Tomcat](https://tomcat.apache.org) as a servlet container behind an Apache or nginx proxy then
106 you should make sure that Tomcat processes the `X-Forwarded-*` headers from the proxy server to derive the 104 you should make sure that Tomcat processes the `X-Forwarded-*` headers from the proxy server to derive the
107 correct request URL for the servlets. 105 correct request URL for the servlets.
108 106
109 Please see the Tomcat documentation about the [Remote IP Valve](https://tomcat.apache.org/tomcat-9.0-doc/config/valve.html#Remote_IP_Valve). 107 Please see the Tomcat documentation about the [Remote IP Valve](https://tomcat.apache.org/tomcat-9.0-doc/config/valve.html#Remote_IP_Valve).
110 You basically need to add the following XML tag with your proxy's IP numbers to the `Host` tag of your `server.xml` file: 108 You basically need to add the following XML tag with your proxy's IP numbers to the `Host` tag of your `server.xml` file
109 and make sure `ProxyPreserveHost` is set to `on`:
110
111 ``` 111 ```
112 <Valve className="org.apache.catalina.valves.RemoteIpValve" 112 <Valve className="org.apache.catalina.valves.RemoteIpValve"
113 internalProxies="127\.0\.0\.1|123\.45\.67\.89" 113 internalProxies="127\.0\.0\.1|123\.45\.67\.89"
114 remoteIpHeader="x-forwarded-for" 114 remoteIpHeader="x-forwarded-for"
115 proxiesHeader="x-forwarded-by" 115 proxiesHeader="x-forwarded-by"
116 protocolHeader="x-forwarded-proto" /> 116 protocolHeader="x-forwarded-proto" />
117 ``` 117 ```
118 and make sure `ProxyPreserveHost` is set to `on`. 118
119