Changeset 1701:9538e27b5c2f in digilib (mirror)


Ignore:
Timestamp:
Dec 18, 2018 11:53:03 AM (3 months ago)
Author:
Robert Casties <casties@…>
Branch:
default
message:
1f1e901e
Message:

Creating site for 2.6-SNAPSHOT

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server-setup.html

    r1700 r1701  
    230230}
    231231</pre></div></div>
    232 <div class="section">
    233 <h3><a name="Resources"></a>Resources</h3>
    234 
    235 <ul>
    236  
    237 <li>the <a href="nginx.org/en/docs/">nginx documentation</a></li>
    238 </ul></div></div>
     232<p>Please check the <a href="nginx.org/en/docs/">nginx documentation</a>.</p></div>
    239233<div class="section">
    240234<h2><a name="Apache_as_proxy_and_load-balancer"></a>Apache as proxy and load-balancer</h2>
     
    295289<h2><a name="Tomcat_behind_a_proxy"></a>Tomcat behind a proxy</h2>
    296290<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&#x2019;s IP numbers to the <tt>Host</tt> tag of your <tt>server.xml</tt> file: <tt>
    298   &lt;Valve className=&quot;org.apache.catalina.valves.RemoteIpValve&quot;
     291<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&#x2019;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>
     292
     293<div class="source">
     294<div class="source">
     295<pre>  &lt;Valve className=&quot;org.apache.catalina.valves.RemoteIpValve&quot;
    299296    internalProxies=&quot;127\.0\.0\.1|123\.45\.67\.89&quot;
    300297    remoteIpHeader=&quot;x-forwarded-for&quot;
    301298    proxiesHeader=&quot;x-forwarded-by&quot;
    302299    protocolHeader=&quot;x-forwarded-proto&quot; /&gt;
    303 </tt> and make sure <tt>ProxyPreserveHost</tt> is set to <tt>on</tt>.</p></div>
     300</pre></div></div></div>
    304301                  </div>
    305302            </div>
Note: See TracChangeset for help on using the changeset viewer.