1将配置文件 /etc/httpd/conf.d/welcome.conf
的-号改为+号
2 systemctl restart httpd ,重启服务就可以看到目录服务器下的目录了
<LocationMatch "^/+$">
Options +IndexesErrorDocument 403 /.noindex.html
</LocationMatch>
1将配置文件 /etc/httpd/conf.d/welcome.conf
的-号改为+号
2 systemctl restart httpd ,重启服务就可以看到目录服务器下的目录了
<LocationMatch "^/+$">
Options +Indexes