Plack::Middleware::RedirectSSL - force all requests to use in-/secure connections
version 1.101
# 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.
http
https
ssl
Specifies 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.
hsts
Specifies the max-age value for the Strict-Transport-Security header. (Cf. RFC 6797, HTTP Strict Transport Security.) If not specified, it defaults to 6 weeks. If 0, no Strict-Transport-Security header will be sent.
max-age
Strict-Transport-Security
Aristotle Pagaltzis <pagaltzis@gmx.de>
This software is copyright (c) 2014 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.
To install Plack::Middleware::RedirectSSL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::RedirectSSL
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::RedirectSSL
For more information on module installation, please visit the detailed CPAN module installation guide.