Risk-Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

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

Author

       Tatsuhiko Miyagawa

Configuration

       root
           Document root directory. Defaults to the current directory.

Description

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

Name

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

See Also

       Plack::App::File

perl v5.38.2                                       2024-01-20                         Plack::App::Directory(3pm)

Synopsis

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

See Also