前提として「httpd.conf」で対象ディレクトリを「AllowOverride All」にする必要あり
<Directory "<対象ディレクトリ>">
AllowOverride All
</Directory>
「Index of」を表示させる
Options Indexes
![](https://blog.ezic.info/wp-content/uploads/2021/07/image-2.png)
「Index of」を表示させない
Options -Indexes
![](https://blog.ezic.info/wp-content/uploads/2021/07/image-3.png)
前提として「httpd.conf」で対象ディレクトリを「AllowOverride All」にする必要あり
<Directory "<対象ディレクトリ>">
AllowOverride All
</Directory>
Options Indexes
Options -Indexes