Apache开启目录浏览

<VirtualHost *:80>
   DocumentRoot C:Res
   ServerName www.dd.com
</VirtualHost> 

<Directory "C:Res">
    #开启文件目录功能
    Options Indexes FollowSymLinks
    #设置展示文件编码
    IndexOptions NameWidth=10 Charset=UTF-8
    
    AllowOverride all
    DirectoryIndex index.html index.php
</Directory>

参考

Apache开启目录浏览功能

 Apache Options指令详解

Apache Direcotry Indexes目录列表显示样式定制

Apache虚拟主机中 Options 的设置显示Apache目录列表

 

注重细节——关注底层——注重细节——关注底层——注重细节——关注底层——注重细节——关注底层——注重细节——关注底层
原文地址:https://www.cnblogs.com/PJG20/p/12615858.html