DOKK / manpages / debian 12 / libplack-perl / Plack::App::Directory.3pm.en
Plack::App::Directory(3pm) User Contributed Perl Documentation Plack::App::Directory(3pm)

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

2022-09-06 perl v5.34.0