Web Server: URL Rewrite to Forbid Non-SSL Requests

From Resin 4.0 Wiki

(Difference between revisions)
Jump to: navigation, search
Ferg (Talk | contribs)
(Created page with "{{WebServer}} {{Cookbook}} === WEB-INF/resin-web.xml to require SSL for /secure === <web-app xmlns="http://caucho.com/ns/resin" xmlns:resin="urn:java:com.caucho.r...")
Newer edit →

Revision as of 00:00, 12 January 2012

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