How to Redirect to SSL

Using the rewriter element, we can easily redirect to SSL.

Configuration

<api host="www.server.com">
<rewriter>
<map from="/(.*)" to="https://www.server.com/$1" />
</rewriter>
<target url="backend" />
</api>
<api host="www.server.com">
    <rewriter>
        <map from="/(.*)" to="https://www.server.com/$1" />
    </rewriter>
    <target url="backend" />
</api>

Resources

PluginExampleDocumentation
ifExampleDocumentation
rewriterExampleDocumentation