Resin behind SSL Load Balancer

From Resin 3.0

Jump to: navigation, search

When Resin is run behind a hardware load balancer, some extra configuration may be required to support redirects and to handle security.

Since the local port and the local server name are different from the load balancer's name, in some configurations redirects may need extra configuration.

In addition, if the load balancer is handling SSL, Resin needs to be informed so it can pass the correct information to the servlet.

For redirects, Resin normally uses the "Host" header from the HTTP request as the host name. Since the "Host" is given by the browser, this is normally correct without any necessary changes. In other cases, you can set the host-name in the <host> item to force a host response.

The <set-request-secure/> tag in the host tells Resin that all requests coming to this virtual host should be treated as secure, including redirects.


<resin xmlns=""

  <log-handler name="" level="all" path="stdout:"
               timestamp="[%y-%m-%d %H:%M:%S.%s] "/>

  <logger name="com.caucho" level="info"/>
  <cluster id="my-cluster">
      <http port="8080"/>

    <server id="a" address="" port="6800"/>
    <resin:import path="${__DIR__}/app-default.xml"/>

    <proxy-cache memory-size="64M"/>

    <host id="" host-name='' secure-host-name=''>

      <web-app-deploy path="webapps"/>
Personal tools