WampServer 3 无法显示文件目录列表

本文介绍了解决WampServer环境下Apache无法显示目录列表的问题。通过修改httpd.conf配置文件,启用mod_autoindex模块来实现目录内容的展示。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

WampServer Version 3.0.0 64bit

Apache/2.4.17 (Win64) PHP/5.6.16

创建Alias Directories 目录后 打开地址显示

Not Found

The requested URL /www/ was not found on this server.


Apache/2.4.17 (Win64) PHP/5.6.16 Server at localhost  Port 80

 

如果里面放入 index.html 可以访问 

但就是不能显示文件目录列表

解决办法

参考链接 https://stackoverflow.com/questions/36364539/how-to-enable-directory-listing-in-a-virtual-host-of-wamp-server-3

Wampserver默认把这个功能关闭了

打开httpd.conf

移除下列行的开头的#号

LoadModule autoindex_module modules/mod_autoindex.so
Include conf/extra/httpd-autoindex.conf

重新启动WampServer 

好了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值