apache 访问网站forbidden: client denied by server configuration错误解决方法
来源:互联网 发布:淘宝上的衣服干净吗 编辑:程序博客网 时间:2024/06/05 14:34
出现这个错误的原因是,apache2.4 与 apache2.2 的虚拟主机配置写法不同导致。
apache2.2的写法:
推荐先用这个:<VirtualHost *:80> ServerName www.ec2.com DocumentRoot /var/www/shop/DirectoryIndex index.html index.php <Directory /var/www/shop/> AllowOverride All Order allow,deny Allow from All </Directory> ErrorLog /var/log/edusoho_error.log</VirtualHost><VirtualHost *:80> 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 *:80> 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>
0 0
- apache 访问网站forbidden: client denied by server configuration错误解决方法
- apache AH01630: client denied by server configuration错误解决方法
- apache AH01630: client denied by server configuration错误解决方法
- apache AH01630: client denied by server configuration错误解决方法
- apache AH01630: client denied by server configuration错误解决方法
- apache AH01630: client denied by server configuration
- Apache/2.4.9启动错误:AH01630: client denied by server configuration
- apache2.4 AH01630: client denied by server configuration错误
- client denied by server configuration: proxy:ajp:
- apache支持cgi运行.py报错client denied by server configuration: /xxx.py
- apache Directory index forbidden by Options directive 错误解决方法
- virtualhost配置不成功,纠结了好几个小时的问题 :AH01630: client denied by server configuration
- Apache2.4 虚拟主机(VirtualHost)的配置方法,用来解决client denied by server configuration
- Mac MAMP 安装 tp5 出现 apache Directory index forbidden by Options directive 错误解决方法
- 局域网访问Apache PHP错误:Forbidden You don't have permission to access / on this server.
- .访问网站403错误 Forbidden解决方法[这个是我贴的别人的]
- 访问 apache 显示 Forbidden You don't have permission to access /index.html on this server. 解决方法
- apache 报错 Access forbidden! 403错误的解决方法
- HDU5839-Special Tetrahedron(判断四点共面,叉乘求平面垂直向量)
- 抓包工具Charles乱码解决办法
- 这些Javascript知识点,面试和平时开发都需要
- Docker详解
- spark 2.1 SizeEstimator
- apache 访问网站forbidden: client denied by server configuration错误解决方法
- el中的算术表达式
- 指针和引用的定义和性质区别
- Java中的面试题 [4] --- Java进阶高级知识、微服务、SpringBoot、springcloud、系统架构、集群等
- Windows勒索病毒“永恒之蓝”漏洞补丁包
- Android相机之MediaStore.ACTION_IMAGE_CAPTURE
- SQL中IN与EXISTS的比较【转】
- echarts属性简介
- 关闭445端口等危险端口,应对勒索病毒