インデックスファイルがない httpd ディレクトリーの全ディレクトリーリストを無効にする
Issue
http://localhost/staticfile/ に移動する場合など、staticfile フォルダーの中にあるファイルを表示するのではなく 403 Forbidden を表示する必要があります。
Environment
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Apache httpd 2.2
- Apache httpd 2.4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.