apache目录浏览设置
2012-07-11 13:22
267 查看
apache目录浏览设置
用途:在目录下如果没有默认首页面(如index.html default.htm)时防止用户访问web时浏览目录
打开httpd.conf
查找Options Indexes FollowSymLinks
修改为:
Options -Indexes FollowSymLinks
修改保存退出,重新启动apache
访问http://127.0.0.1如果看到以下提示说明修改成功
Apache/2.0.53 (Unix) Server at 192.168.0.1Port 80
开启浏览:
<Directory />
Options FollowSymLinks
AllowOverride None
Options Indexes #就加这句就可以了,目录按需要选择
</Directory>
用途:在目录下如果没有默认首页面(如index.html default.htm)时防止用户访问web时浏览目录
打开httpd.conf
查找Options Indexes FollowSymLinks
修改为:
Options -Indexes FollowSymLinks
修改保存退出,重新启动apache
访问http://127.0.0.1如果看到以下提示说明修改成功
Forbidden
You don't have permission to access / on this server.Apache/2.0.53 (Unix) Server at 192.168.0.1Port 80
开启浏览:
<Directory />
Options FollowSymLinks
AllowOverride None
Options Indexes #就加这句就可以了,目录按需要选择
</Directory>
相关文章推荐
- apache目录浏览设置
- Apache设置 禁止目录浏览
- apache 目录浏览编码设置
- Apache的虚拟目录设置方法【转】
- apache在win2003下的安全设置(配合文件夹权限目录,很好很安全)
- windows xp下设置apache目录访问身份验证(目录访问控制)
- OS X Yosemite下设置Apache Alias目录别名访问
- apache wamp虚拟目录设置
- 【PHP编程之路-1】设置apache虚拟目录
- linux下关于Apache设置二级域名绑定二级目录的方法
- Apache的虚拟目录设置
- Linux系统下Apache日志文件设置、更改默认网站目录、防止php木马跨站设置、禁止空主机头
- Apache的虚拟目录和虚拟主机设置
- Apache虚拟主机和虚拟目录的设置
- Apache 文件根目录设置修改方法 (Document Root)
- Apache虚拟目录设置方法
- apache 2.2 和2.4 目录权限访问设置的区别
- 如何设置 Apache HTTP Server 的文件根目录(DocumentRoot)
- APACHE中虚拟目录和虚拟主机设置
- linux Apache下实现禁止URL浏览文件目录