Apache 禁止目錄訪問

\Apache\conf\httpd.conf

找到配置文件,搜索 Options把加號換成減號,或者去掉Indexes 也可以

 

DocumentRoot  "D:\phpStudy\WWW"
<Directory />
    Options +Indexes +FollowSymLinks +ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
    Require all granted
</Directory>

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章