---
name: "mod_dir"
section: "3erl"
platform: "linux"
package: "erlang-manpages"
version: "1:10.b.1a-1"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/mod_dir"
---

# mod\_dir(3erl)

Basic directory handling.

## NAME

mod\_dir - Basic directory handling.

## DESCRIPTION

This module generates an HTML directory listing (Apache-style) if a client sends a request for a directory instead of a file. This module is not configurable and it needs to be removed from the Modules config directive if directory listings is unwanted.

## EWSAPI MODULE INTERACTION

Uses the following EWSAPI interaction data, if available:

- ***{real\_name, {Path, AfterPath}}*:**

  as defined in mod\_alias(3).

Exports the following EWSAPI interaction data, if possible:

- ***{mime\_type, MimeType}*:**

  The file suffix of the incoming URL mapped into a *MimeType* as defined in the Mime Type Settings section of *httpd\_core(3)*.

Uses the following EWSAPI functions:

- \*

  mod\_alias:default\_index/2

- \*

  mod\_alias:path/3

## SEE ALSO

httpd(3), mod\_alias(3)

## AUTHOR

```
Joakim Grebenö  - support@erlang.ericsson.se
```
