Resin 3.1.1 includes some features in rewrite-dispatch that may be able
to help:
http://www.caucho.com/resin-3.1/doc/rewrite-tags.xtp#set

Basically, there is facility to set the isSecure method of the request
to return true if there is some condition of the request (such as a
header set by the load balancer) that can be used to determine that the
request should be secure.

<web-app xmlns="http://caucho.com/ns/resin";>

  <rewrite-dispatch>
    <set request-secure="true">
      <when header="X-SSL-cipher"/>
    </set>
  </rewrite-dispatch>

</web-app>

If the load balancer is configured to proxy regular requests to port
8080 and SSL requests to port 8443 then something like the following
should work:

<web-app xmlns="http://caucho.com/ns/resin";>

  <rewrite-dispatch>
    <set request-secure="true">
      <when local-port="8443"/>
    </set>
  </rewrite-dispatch>

</web-app>

-- Sam



_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to