随笔分类 -  Apache

摘要:ErrorDocument 400 /error_pages/400.htmlErrorDocument 401 /error_pages/401.htmlErrorDocument 403 /error_pages/403.htmlErrorDocument 404 /error_pages/40... 阅读全文

posted @ 2015-11-12 21:14 梦想翱翔 阅读(376) 评论(0) 推荐(0)

摘要:1)修改目录配置:复制代码 代码如下:Options Indexes FollowSymLinks # 修改为: Options FollowSymLinks AllowOverride None Order allow,deny Allow from all只需要将上面代码中的 Indexes 去... 阅读全文

posted @ 2015-11-12 20:48 梦想翱翔 阅读(192) 评论(0) 推荐(0)

摘要:1、权限设定方式变更2.2使用Order Deny / Allow的方式,2.4改用Requireapache2.2:Order deny,allowDeny from allapache2.4:Require all denied此处比较常用的有如下几种:Require all deniedReq... 阅读全文

posted @ 2015-11-12 20:47 梦想翱翔 阅读(380) 评论(0) 推荐(0)

摘要:1.打开apache的httpd.conf文件,找到# Virtual hosts#Include conf/extra/httpd-vhosts.conf这一段把Include conf/extra/httpd-vhosts.conf前面的"#"去掉。2.修改位于(win7)c:/windows/... 阅读全文

posted @ 2015-08-21 09:17 梦想翱翔 阅读(143) 评论(0) 推荐(0)

摘要:一、.htaccess的基本作用 .htaccess是一个纯文本文件,它里面存放着Apache服务器配置相关的指令。 .htaccess主要的作用有:URL重写、自定义错误页面、MIME类型配置以及访问权限控制等。主要体现在伪静态的应用、图片防盗链、自定义404错误页面、阻止/允许特定IP/IP段、... 阅读全文

posted @ 2015-08-12 13:43 梦想翱翔 阅读(268) 评论(0) 推荐(0)

导航