【问题标题】:apache httpd disable directory browserapache httpd 禁用目录浏览器
【发布时间】:2017-06-29 11:44:46
【问题描述】:

我已经通过添加 Options -Indexes 来禁用目录浏览器来配置 apache,但是我如何从网站访问资源:在我的 html 文件(来自 host1 的网站)中,有来自另一台服务器 apache(host2)的图像,所以如果我设置选项 - apache(host2)中的索引以防止目录浏览器然后我的 html 中的图像也无法访问。如何解决?

谢谢!

【问题讨论】:

    标签: apache .htaccess security web directory-browsing


    【解决方案1】:

    为什么网页或其他任何人都需要访问目录列表? Options -Indexes 只会停止生成目录列表,不会阻止对任何资源的访问。

    【讨论】:

      猜你喜欢
      • 2017-06-04
      • 2020-01-29
      • 2012-06-14
      • 2011-02-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多