
Plack::Middleware::RedirectSSL - force all requests to use in-/secure connections

version 1.001

# in app.psgi
use Plack::Builder;
builder {
enable 'RedirectSSL';
$app;
};

This middleware intercepts requests using either the http or https scheme and redirects them to the same URI under respective other scheme.

sslSpecifies the direction of redirects. If true or not specified, requests using http will be redirected to https. If false, requests using https will be redirected to plain http.

Probably that it does not (yet?) support RFC 6797 (HTTP Strict Transport Security (HSTS)).

Aristotle Pagaltzis <pagaltzis@gmx.de>

This software is copyright (c) 2012 by Aristotle Pagaltzis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.