View Single Post
  #1   IP: 114.238.173.71
Old 2014-11-27, 01:30 PM
New Effington New Effington is offline
初级会员
 
Join Date: 2013-07-05
Posts: 1
New Effington 现在声名狼藉
Default 如何在Apache中设置禁止访问目录?(

在 httpd.conf 作一下小小的修改就可以解決了~

首先请找到以下文字:

<Directory \ "你的apache安装路径\ ">

#
# This may also be "None ", "All ", or any combination of "Indexes ",
# "Includes ", "FollowSymLinks ", "ExecCGI ", or "MultiViews ".
#
# Note that "MultiViews " must be named *explicitly* --- "Options All "
# doesn 't give it to you.
#
Options Indexes FollowSymLinks


把 Options Indexes FollowSymLinks这行改成 Options None 就可以了。
Reply With Quote