apache配置(如何禁止列出目录内容)

Zhang Jiuan' Notes 2009-12-07 12:20:33 累计浏览 3,631 次

只需要将访问目录的Options 内部的Indexes去掉即可。

<Directory /home/blog/piwigo-2.0.5> 
        #Options Indexes FollowSymLinks MultiViews 
        Options FollowSymLinks MultiViews 
        AllowOverride all 
        Order allow,deny 
        allow from all 
</Directory>

同分类推荐文章

  1. NGINX Gateway Fabric 2.8: IP allow and deny lists, passive health checks, and cookie-based session persistence (2026-11-14 01:10:02)
  2. NGINX Ingress Controller 5.7: HTTP/2 to your upstreams, Opaque Secrets, and cert-manager challenges behind HTTPS redirects (2026-11-14 00:10:02)
  3. Hexo 文章一键发布到微信公众号 (2026-11-13 19:10:02)

查看更多 DevOps 文章 →

建议继续学习

  1. Git log diff config高级进阶 (累计阅读 25,263)
  2. 在Apache2.2.XX下安装Mod-myvhost模块 (累计阅读 13,482)
  3. server日志的路径分析 (累计阅读 11,502)
  4. 查看 Apache并发请求数及其TCP连接状态 (累计阅读 10,495)
  5. AWStats简介:Apache/Windows IIS的日志分析工具的下载,安装,配置样例和使用(含6.9中文定义补丁) (累计阅读 10,333)
  6. PHP程序的执行流程 (累计阅读 10,276)
  7. nginx的配置文件 (累计阅读 10,215)
  8. Zookeeper研究和应用 (累计阅读 9,822)
  9. Cacti 添加 Apache 监控 (累计阅读 9,801)
  10. 大型高并发高负载网站的系统架构分析 (累计阅读 9,309)