【问题标题】:How to disable Folder indexing with Apache?如何使用 Apache 禁用文件夹索引?
【发布时间】:2020-04-08 07:22:54
【问题描述】:

我在 Debian 上的虚拟主机有以下条目

<Directory /var/www/html/example.com>
Options -Indexes
</Directory>

但 Apache 仍然显示所有内容

https://i.stack.imgur.com/uW2Z6.png

有什么想法吗?

【问题讨论】:

  • 修改配置文件后是否重启了apache?

标签: apache indexing vhosts


【解决方案1】:

解决了!

我已经设置了参数

    <Directory /var/www/html/>
Options -Indexes
</Directory>

在我的 000-default.conf 中,忘记启用配置。

【讨论】:

    猜你喜欢
    • 2011-05-25
    • 2017-09-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-25
    • 2017-04-06
    • 1970-01-01
    • 2015-05-05
    相关资源
    最近更新 更多