Plack::App::Directory - Serve static files from document root with directory index
# app.psgi use Plack::App::Directory; my $app = Plack::App::Directory->new({ root => "/path/to/htdocs" })->to_app;
This is a static file server PSGI application with directory index a la Apache's mod_autoindex.
Document root directory. Defaults to the current directory.
Tatsuhiko Miyagawa
Plack::App::File
To install Plack, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack
CPAN shell
perl -MCPAN -e shell install Plack
For more information on module installation, please visit the detailed CPAN module installation guide.