Plack::App::Directory - Serve static files from document root with directory index


Plack documentation  | view source Contained in the Plack distribution.

Index


NAME

Top

Plack::App::Directory - Serve static files from document root with directory index

SYNOPSIS

Top

  # app.psgi
  use Plack::App::Directory;
  my $app = Plack::App::Directory->new({ root => "/path/to/htdocs" })->to_app;

DESCRIPTION

Top

This is a static file server PSGI application with directory index a la Apache's mod_autoindex.

CONFIGURATION

Top

root

Document root directory. Defaults to the current directory.

AUTHOR

Top

Tatsuhiko Miyagawa

SEE ALSO

Top

Plack::App::File


Plack documentation  | view source Contained in the Plack distribution.