1. 程式人生 > >centos7 下httpd伺服器開啟目錄

centos7 下httpd伺服器開啟目錄

1將配置檔案 /etc/httpd/conf.d/welcome.conf

的-號改為+號

2 systemctl restart httpd ,重啟服務就可以看到目錄伺服器下的目錄了

<LocationMatch "^/+$">

    Options +Indexes
    ErrorDocument 403 /.noindex.html
</LocationMatch>