---
name: "Plack::App::Directory"
section: "3pm"
platform: "linux"
package: "libplack-perl"
version: "1.0051-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Plack::App::Directory"
---

# Plack::App::Directory(3pm)

Serve static files from document root with directory index

## NAME

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

## SYNOPSIS

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

## DESCRIPTION

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

## CONFIGURATION

- root

  Document root directory. Defaults to the current directory.

## AUTHOR

Tatsuhiko Miyagawa

## SEE ALSO

Plack::App::File
