/usr/share/doc/libplack-perl/examples/dot-psgi/static.psgi is in libplack-perl 1.0042-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | use Plack::Builder;
use File::Basename qw(dirname);
my $handler = sub {
return [ 404, [ "Content-Type" => "text/plain" ], [ "Not Found" ] ];
};
builder {
enable "Plack::Middleware::ConditionalGET";
enable "Plack::Middleware::Static",
path => qr/./, root => dirname(__FILE__) . '/static';
$handler;
};
|