设置apache 不能直接访问目录
来源:互联网 发布:青岛10月天气数据 编辑:程序博客网 时间:2024/06/03 19:13
在 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 就可以了。
然后重启APACHE服务器,再看看http://localhost/,是不是变成了:
Forbidden
You don\ 't have permission to access / on this server.
--------------------------------------------------------------------------------
Apache/1.3.14 Server at localhost Port 80
--------------------------------------------------------------------------------
首先请找到以下文字:
<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 就可以了。
然后重启APACHE服务器,再看看http://localhost/,是不是变成了:
Forbidden
You don\ 't have permission to access / on this server.
--------------------------------------------------------------------------------
Apache/1.3.14 Server at localhost Port 80
--------------------------------------------------------------------------------
0 0
- 设置apache 不能直接访问目录
- Apache设置目录禁止访问
- apache设置目录访问权限
- Apache下子目录访问权限的设置
- Apache下目录访问权限设置
- Apache设置禁止访问网站目录
- Apache设置禁止访问网站目录
- Apache设置禁止访问网站目录
- apache中关于目录访问权限设置
- 配置apache,直接访问服务器不显示文件目录
- apache 不能访问 cgi-bin目录下的文件
- apache 设置禁止访问某些文件或目录
- 【wuzhicms】apache 设置禁止访问某些文件或目录
- apache中设置访问目录默认页面为index.php
- apache、nginx禁止访问文件或目录设置
- Apache 创建虚拟主机目录和设置默认访问页面
- windows xp下设置apache目录访问身份验证(目录访问控制)
- CentOS7上Apache中文目录乱码以及目录下文件不能访问的问题
- mysql union, union all合并两个结果集
- PHP substr(),mb_substr()及mb_strcut的区别和用法
- SQL中join的用法
- sql语句中left join、inner join中的on与where的区别
- 写给兄弟连毕业学员的信之年终总结
- 设置apache 不能直接访问目录
- PHP沉思录之五:Session有效期问题
- 转载 分析为什么中国的大多程序员技术偏低--都是被逼的
- DIV+CSS图片和文字如何显示同一行
- JSON进阶第一篇 在PHP与javascript 中使用JSON
- 链表
- 解析JSON字串多种方法
- 铁道部购票网站不是单纯的电子商务
- 数据结构知识一个基础