rfvn 发表于 2014-1-23 09:16:33

apache使某目录下的文件能够列表显示出来

想要使web目录下,某目录下的文件列表显示而不是显示"You don't have permission to access / on this server"

需要在httpd.conf文件中加上下面的配置信息,路径可以是绝对路径,最好它加在httpd.conf文件的最下方,并注释

<Directory "../htdocs/test">

Options Indexes FollowSymLinks
</Directory>


去掉"Indexes "的话,则会出现"You don't have permission to access / on this server"

页: [1]
查看完整版本: apache使某目录下的文件能够列表显示出来