注意:phpStudy每次配置域名后
<Directory "D:\phpStudy\WWW\major\practice">
Options Indexes FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
会重置为
<Directory "D:\phpStudy\WWW\major\practice">
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
重新配置域名后或添加新域名后
添加的Indexes会自动消失
也可注释
#Options FollowSymLinks ExecCGI
仍然可以显示目录
参考资料 Apache Options指令详解 了解更多内容