centos7 下httpd服务器开启目录

来源:互联网 发布:服务器端网络架构 pdf 编辑:程序博客网 时间:2024/06/05 05:48

1将配置文件 /etc/httpd/conf.d/welcome.conf

的-号改为+号

2 systemctl restart httpd ,重启服务就可以看到目录服务器下的目录了

<LocationMatch "^/+$">

    Options +Indexes
    ErrorDocument 403 /.noindex.html
</LocationMatch>
0 0
原创粉丝点击