Mercurial > hg > digilib
comparison server-setup.html @ 1700:79c837179ffb
Creating site for 2.6-SNAPSHOT
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 18 Dec 2018 10:45:17 +0000 |
parents | 8a9c66abb57c |
children | 9538e27b5c2f |
comparison
equal
deleted
inserted
replaced
1692:57fcbde44c14 | 1700:79c837179ffb |
---|---|
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 | Generated by Apache Maven Doxia at 2018-03-14 | 3 | Generated by Apache Maven Doxia at 2018-12-18 |
4 | Rendered using Apache Maven Fluido Skin 1.3.0 | 4 | Rendered using Apache Maven Fluido Skin 1.3.0 |
5 --> | 5 --> |
6 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | 6 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
7 <head> | 7 <head> |
8 <meta charset="UTF-8" /> | 8 <meta charset="UTF-8" /> |
9 <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | 9 <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
10 <meta name="Date-Revision-yyyymmdd" content="20180314" /> | 10 <meta name="Date-Revision-yyyymmdd" content="20181218" /> |
11 <meta http-equiv="Content-Language" content="en" /> | 11 <meta http-equiv="Content-Language" content="en" /> |
12 <title>digilib - The Digital Image Library – Server setup for digilib</title> | 12 <title>digilib - The Digital Image Library – Server setup for digilib</title> |
13 <link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" /> | 13 <link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" /> |
14 <link rel="stylesheet" href="./css/site.css" /> | 14 <link rel="stylesheet" href="./css/site.css" /> |
15 <link rel="stylesheet" href="./css/print.css" media="print" /> | 15 <link rel="stylesheet" href="./css/print.css" media="print" /> |
39 | 39 |
40 <div id="breadcrumbs"> | 40 <div id="breadcrumbs"> |
41 <ul class="breadcrumb"> | 41 <ul class="breadcrumb"> |
42 | 42 |
43 | 43 |
44 <li id="publishDate">Last Published: 2018-03-14</li> | 44 <li id="publishDate">Last Published: 2018-12-18</li> |
45 <li class="divider">|</li> <li id="projectVersion">Version: 2.5-SNAPSHOT</li> | 45 <li class="divider">|</li> <li id="projectVersion">Version: 2.6-SNAPSHOT</li> |
46 | 46 |
47 | 47 |
48 | 48 |
49 | 49 |
50 </ul> | 50 </ul> |
266 LogLevel warn | 266 LogLevel warn |
267 CustomLog ${APACHE_LOG_DIR}/digilib-ssl-access.log combined | 267 CustomLog ${APACHE_LOG_DIR}/digilib-ssl-access.log combined |
268 | 268 |
269 # do not forward-proxy! | 269 # do not forward-proxy! |
270 ProxyRequests off | 270 ProxyRequests off |
271 # set proxy proto header | 271 # set proxy headers |
272 ProxyPreserveHost On | |
272 RequestHeader set X-Forwarded-Proto "https" | 273 RequestHeader set X-Forwarded-Proto "https" |
273 # digilib instances | 274 # digilib instances |
274 <Proxy balancer://digilibs> | 275 <Proxy balancer://digilibs> |
275 BalancerMember http://127.0.0.1:8080 | 276 BalancerMember http://127.0.0.1:8080 |
276 BalancerMember http://otherserver.example.com:8080 | 277 BalancerMember http://otherserver.example.com:8080 |
288 </pre></div></div></div> | 289 </pre></div></div></div> |
289 <div class="section"> | 290 <div class="section"> |
290 <h2><a name="Jetty_behind_a_proxy"></a>Jetty behind a proxy</h2> | 291 <h2><a name="Jetty_behind_a_proxy"></a>Jetty behind a proxy</h2> |
291 <p>When you are using <a class="externalLink" href="https://www.eclipse.org/jetty/">Jetty</a> as servlet container behind an Apache or nginx proxy then you should make sure that Jetty processes the <tt>X-Forwarded-*</tt> headers from the proxy server to derive the correct request URL for the servlets.</p> | 292 <p>When you are using <a class="externalLink" href="https://www.eclipse.org/jetty/">Jetty</a> as servlet container behind an Apache or nginx proxy then you should make sure that Jetty processes the <tt>X-Forwarded-*</tt> headers from the proxy server to derive the correct request URL for the servlets.</p> |
292 <p>Please see <a class="externalLink" href="http://www.eclipse.org/jetty/documentation/9.4.x/configuring-connectors.html#_proxy_load_balancer_connection_configuration">this information for Jetty 9.4</a> or <a class="externalLink" href="https://wiki.eclipse.org/Jetty/Tutorial/Apache#Configuring_mod_proxy_http">this information for Jetty 8 and earlier versions</a>.</p></div> | 293 <p>Please see <a class="externalLink" href="http://www.eclipse.org/jetty/documentation/9.4.x/configuring-connectors.html#_proxy_load_balancer_connection_configuration">this information for Jetty 9.4</a> or <a class="externalLink" href="https://wiki.eclipse.org/Jetty/Tutorial/Apache#Configuring_mod_proxy_http">this information for Jetty 8 and earlier versions</a>.</p></div> |
294 <div class="section"> | |
295 <h2><a name="Tomcat_behind_a_proxy"></a>Tomcat behind a proxy</h2> | |
296 <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> | |
297 <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> | |
298 <Valve className="org.apache.catalina.valves.RemoteIpValve" | |
299 internalProxies="127\.0\.0\.1|123\.45\.67\.89" | |
300 remoteIpHeader="x-forwarded-for" | |
301 proxiesHeader="x-forwarded-by" | |
302 protocolHeader="x-forwarded-proto" /> | |
303 </tt> and make sure <tt>ProxyPreserveHost</tt> is set to <tt>on</tt>.</p></div> | |
293 </div> | 304 </div> |
294 </div> | 305 </div> |
295 </div> | 306 </div> |
296 | 307 |
297 <hr/> | 308 <hr/> |