今天本来是想要在自己本地搭建一个wamp环境用来做一些代码的测试和框架的学习。

鉴于目前工作的时候用到了php5.5,所以就用了wamp-server V2.5版本,安装完成之后配置虚拟主机一直出现403,各种重启N次卸载重装,最后才好到问题的所在,故记录下来,希望其他同学有这样的问题的时候可以快速的解决~~

apache 虚拟主机配置:

apache AH01630: client denied by server configuration错误解决方法

出现这个错误的原因是,apache2.4 与 apache2.2 的虚拟主机配置写法不同导致。

apache2.2的写法:

<VirtualHost *:>
ServerName fdipzone.demo.com
DocumentRoot "/home/fdipzone/sites/www"
DirectoryIndex index.html index.php <Directory "/home/fdipzone/sites/www">
Options -Indexes +FollowSymlinks
AllowOverride All
Order deny,allow
Allow from all
</Directory> </VirtualHost>

如果在2.4中使用以上写法就会有apache AH01630: client denied by server configuration错误。

解决方法,apache2.4中

    Order deny,allow
Allow from all
Allow from host ip

修改为

     Require all granted
Require host ip

修改后的配置如下:

 <VirtualHost *:>
ServerName fdipzone.demo.com
DocumentRoot "/home/fdipzone/sites/www"
DirectoryIndex index.html index.php <Directory "/home/fdipzone/sites/www">
Options -Indexes +FollowSymlinks
AllowOverride All
Require all granted
</Directory> </VirtualHost>

最新文章

  1. Spring Security OAuth2 开发指南
  2. PHP用法
  3. Java mac 上编写Java代码
  4. Qunar实习回顾总结
  5. HDU1016 Prime Ring Problem(DFS回溯)
  6. java作用域public ,private ,protected 及不写时的区别(转)
  7. pragma伪指令
  8. cmd 里面运行git提示“不是内部或外部命令,也不是可运行的程序”的解决办法
  9. 安装PyQt
  10. JQuery 判断ie7|| ie8
  11. uva 1393 - Highways(容斥原理)
  12. MyBatis框架概述
  13. Struts2学习笔记三 访问servlet
  14. springboot启动流程
  15. 最简单的 nginx 负载均衡,只能演示,企业中最好不用
  16. 201621123018《java程序设计》第13周作业总结
  17. Android基础知识之Manifest文件的组织结构
  18. maven 3.5.2 修改java_home
  19. 在CentOS 7下编译安装Nginx+PHP+MySQL环境
  20. cocos2dx --- 富文本的使用 RichText

热门文章

  1. 火星A+B
  2. bochs 2.6安装和使用
  3. Qt之HTTPS登录(集成QNetworkAccessManager提前修改QSslConfiguration,然后post)
  4. cf479D Long Jumps
  5. netstat和telnet命令在Windows7中的用法(转载)
  6. python爬虫系列之爬取多页gif图像
  7. The Building Blocks- Components of EA Part 2- Process, People, Network and Time
  8. 看漫画,学 Redux
  9. Masterha-manager避免自动关闭的方法
  10. thinkphp的条件的多种写法