> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# web-server-directory-listing

> An Nginx or Apache config turns on directory listing (autoindex on or Options Indexes).

## What it flags

Nginx `autoindex on;` and Apache `Options Indexes`, `Options +Indexes` or `Options All` without `-Indexes`. Folder listings reveal backups, build artifacts and files nobody linked to. Read from `nginx.conf`, `httpd.conf`, `apache2.conf`, `.htaccess` and `*.conf` files under `nginx/`, `conf.d/`, `sites-available/`, `sites-enabled/`, `apache2/` or `httpd/`.

Review folders that are meant to be browsed, such as a public download mirror, and keep the listing when it is intended.

```nginx theme={null}
location /files/ {
  autoindex off;
}
```

No automatic fix: a human decides.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "web-server-directory-listing": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.