Apache 2.4 配置多个虚拟主机的问题
2016-01-21 10:48
666 查看
以前一直用Apache2.2的版本,最近升级到了2.4的版本,尝尝新版本嘛。
不过遇到了几个问题,一个就是配置了多个virtualhost,虽然没有报错,不过除了第一可以正常访问外,其他的都存在403的问题,如下面的提示那样。
查了些资料说是 deny from all 要改成 allow from all,原来是没有这行的,直接加 allow from all 结果启动就出现问题了。
再查,结果发现2.4版本的语法变了
更多关于 2.2升级到2.4的情况可以看看官网 http://httpd.apache.org/docs/trunk/upgrading.html
不过遇到了几个问题,一个就是配置了多个virtualhost,虽然没有报错,不过除了第一可以正常访问外,其他的都存在403的问题,如下面的提示那样。
Forbidden
You don't have permission to access / on this server.查了些资料说是 deny from all 要改成 allow from all,原来是没有这行的,直接加 allow from all 结果启动就出现问题了。
Invalid command 'Allow', perhaps misspelled or defined by a module not included in the server config uration
再查,结果发现2.4版本的语法变了
Order allow,deny Allow from all 改成: Require all granted
更多关于 2.2升级到2.4的情况可以看看官网 http://httpd.apache.org/docs/trunk/upgrading.html
相关文章推荐
- centos apache IE8兼容
- 快速了解Apache Shiro
- apache mina: IoSession结构剖析
- ubuntu下xampp更改apache的端口
- [j2ee]解决在集成Apache CXF框架过程中遇到的问题cannot be cast to javax.servlet.Filter
- 关于出现 org.apache.commons.lang.exception.NestableRuntimeException的解决方法
- apache 开始路由(rewrite)
- 【apache-hive-1.2.1】create table, external table
- 关于apache代理报错error reading status line from remote server
- 【Apache运维基础(5)】Apache的Rewrite攻略(2)
- 修改apache服务器根目录
- windows apache 服务 监控重启脚本
- Apache shiro 文章推荐
- 一次apache出现403错误排查
- Windows2003 Apache 关闭安全 开启错误输入到屏幕上
- apache mina 与 SEDA
- apache域名重定向301跳转 .htaccess的写法
- java.lang.Throwable: Child Error at org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:271) Ca
- apache commons-io 用户手册
- apache mina:SimpleIoProcessorPool