如何配置 apache 查看隐藏(`.`)文件?
如何使 apache 中的目录列表显示 .
/hidden 文件?我都尝试了
<Directory /var/www/*>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
,
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
但都不显示隐藏文件
How do I make a directory listing in apache show the .
/hidden files? I tried both
<Directory /var/www/*>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
and
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
but neither show the hidden files
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查您的 IndexIgnore 设置为什么。在我的上,它是:
/etc/apache2/mods-enabled/autoindex.conf:IndexIgnore .??* *~ *# RCS CVS *,v *,t
Obviously, you'd want to remove that
.??*
check what your IndexIgnore is set to. On mine, it's:
/etc/apache2/mods-enabled/autoindex.conf:IndexIgnore .??* *~ *# RCS CVS *,v *,t
Obviously, you'd want to remove that
.??*