-
-
12 Mar 2013 05:33:15 UTC
- Distribution: Plack-Middleware-DefaultDocument
- Module version: 0.02
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues
- Testers (409 / 1 / 0)
- Kwalitee
Bus factor: 0- 95.83% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (24.69KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Plack
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Plack::Middleware::DefaultDocument - Return default document with '200' instead of '404' error
SYNOPSIS
enable "DefaultDocument" => ( '/favicon\.ico$' => '/path/to/htodcs/favicon.ico', '/robots\.txt' => '/path/to/htdocs/robots.txt', );
DESCRIPTION
This DefaultDocument middleware is able to return '200' response with default document instead of '404' error. It is useful in the case that your application can't find any contents from database, assets of users, static assets and etc, but has system default file for request URL and to want to return it with '200' reponse, not '404' errror.
SEE ALSO
Plack::Middleware::ErrorDocument
AUTHOR
Hiroshi Sakai <ziguzagu@cpan.org>
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Plack::Middleware::DefaultDocument, copy and paste the appropriate command in to your terminal.
cpanm Plack::Middleware::DefaultDocument
perl -MCPAN -e shell install Plack::Middleware::DefaultDocument
For more information on module installation, please visit the detailed CPAN module installation guide.