Web Server: URL Rewrite to Forbid Non-SSL Requests

From Resin 4.0 Wiki

Revision as of 00:00, 12 January 2012 by Ferg (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Web-48.pngCookbook-48.png

WEB-INF/resin-web.xml to require SSL for /secure

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

  <resin:Forbidden regexp="^/secure">
    <resin:IfSecure value="false"/>
  </resin:Forbidden>

</web-app>
Personal tools
TOOLBOX
LANGUAGES