Mantis - Resin
Viewing Issue Advanced Details
4432 minor always 03-10-11 10:04 04-07-11 10:37
ferg  
ferg  
normal  
closed 4.0.13  
fixed  
none    
none 4.0.16  
0004432: Rewrite for SSL
(rep by Matt Poirier)

We are attempting to force SSL for a URL on our server.

I cannot seem to get it working. I have tried several options as such

   
            <resin:Redirect regexp="^/foo" target="https://${host.name}/foo"/> [^]

            <resin:Redirect regexp="^/foo/([^/]+)" target="https://${host.name}/foo/$1"/> [^]

            <resin:Redirect regexp="^/foo" target="https://${host.name}/foo"> [^]
<resin:IfSecure value="false"/> </resin:Redirect>
 
            <resin:Redirect regexp="^/foo/([^/]+)" target="https://${host.name}/foo/$1"> [^]
<resin:IfSecure value="false"/> </resin:Redirect>
 

Notes
(0005181)
ferg   
04-07-11 10:37   
server/1kf3

Verified to work with 4.0.16.

Note that you do need a host-name="example.com" in the resin.xml for this to work:

    <resin:Redirect regexp='^/foo' target='https://${host.name}/foo'> [^]
      <resin:IfSecure value="false"/>
    </resin:Redirect>