1. 程式人生 > >apache允許列目錄

apache允許列目錄

tor index com sta pac /var/ start ted require

vi /etc/httpd/conf.d/welcom.conf

<LocationMatch "^/+$">
#Options -Indexes

vi /etc/httpd/conf/httpd.conf

<Directory "/var/www/html">
Options Indexes FollowSymLinks
Require all granted
</Directory>

service httpd restart

apache允許列目錄