【问题标题】:Apache Directory Index showing files but not folders with mod_auth_openidcApache 目录索引显示文件但不显示带有 mod_auth_openidc 的文件夹
【发布时间】:2017-03-13 17:43:08
【问题描述】:

我有一个文件夹,里面有文件和文件夹,我正在 Debian Jessie 上运行 Apache 2.4。 一切都是chmoded 755chowned by www-data

我已经使用 Options +IndexesOptions Indexes FollowSymlinks MultiViews 从我的 VirtualHost 的配置中启用目录索引。

我在apache2.conf 中没有IndexIgnore 指令

当我从 HTTP 访问文件夹时,Apache 只显示文件而不显示文件夹。

我也想显示文件夹链接。我怎样才能做到这一点?

【问题讨论】:

  • 为了测试,把IndexIgnoreReset ON加到.htaccess文件中看看。

标签: apache directory debian virtualhost mod-auth-openidc


【解决方案1】:

看起来 mod_auth_openidc 出于某种原因不希望 Apache 列出文件夹。 我用以下方法覆盖了它:

IndexOptions +ShowForbidden

【讨论】:

猜你喜欢
  • 2018-07-16
  • 2014-09-17
  • 1970-01-01
  • 2018-10-22
  • 2014-02-01
  • 2019-12-13
  • 2016-01-08
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多