apache2.4 You don‘t have permission to access / on

apache2.4 You don‘t have permission to access / on this server.

在配置完apache2.4
conf/extra/httpd-vhosts.conf 添加完虚拟主机后以及
本地windows/system32/drivers/etc/host.conf 进行域名解析后

去到Apache
conf/httpd.conf
大概是231行的位置
修改
<Directory />
AllowOverride none
Require all no
</Directory>

<Directory “代码目录”>
Options Indexes FollowSymlinks
AllowOverride All
Require all granted
</Directory>

原文地址:http://blog.51cto.com/13757802/2138878

时间: 2024-08-30 11:35:53

apache2.4 You don‘t have permission to access / on的相关文章

Apache 2.4权限设置( you don&#39;t have permission to access / on this server Apache2.4)

摘要 you don't have permission to access / on this server Apache2.4 Apache 从2.2升级到 Apache2.4.x 后配置文件 httpd.conf 的设置方法有了大变化,以前是将 deny from all 全部改成 Allow from all 实现外网访问,现在是将 Require all denied 以及 Require local 都该为 Require all granted 就可以了. .htaccess 如果

server下apache2.4.*虚拟主机配置Forbidden You don&#39;t have permission to access / on this server.

前言: 继前面两节笔记之后,在配置一个虚拟主机时,这中间却遇见了一个问题,这里需要描述做一下笔记,刚刚安装的是Ubuntu server,apt-get下来的apache的版本是2.4.7,之前一直用的是apache2.2的,期间遇见过403错误,只是问题处理的方式方法有些不一样,于是这里就一时没有找到头绪.本文原创博客地址:http://www.cnblogs.com/unofficial官网地址:www.pushself.com) 403:没有权限访问 不说废话直接找主题: 首先我们来回顾一

Apache2.4中出现You don&#39;t have permission to access / on this server.

注意Apache2.4跟以前版本配置不一的啊,弄了我很久 在配置apache工作出错:You don't have permission to access / on this server. 默认的apache的工作目录为:/usr/local/apache2/htdocs/ 现在想修改为:/www 除了要修改:/usr/local/apache2/conf/http.conf文件中的工作目录:DocumentRoot "/www"外,记得要把对应的工作目录权限的地址一并修改过来,例

You don&#39;t have permission to access / on this server.

出现这个报错需要更改apache配置文件 sudo vi /etc/apache2/httpd.conf 将 <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all </Directory> 或类似 修改为 <Directory /> Options Indexes FollowSymLinks AllowOverride None </Direc

Apache-You don&#39;t have permission to access / on this server. Apache, win 7

在win7环境下,apche报出You don't have permission to access / on this server.禁止访问,应该如何解决呢?可以试试下面的方法 第一:寻找配置文件:apache\apache2.2.22\conf\httpd.conf (修改配置文件之前,记得先做好备份,以免方案不对,影响原来的配置) 第二:用编辑器打开,寻找: #LoadModule rewrite_module modules/mod_rewrite.so 第三:删除本行开头的“#”,

you don&#39;t have permission to access / on this server解决

时间:2014-10-13 17:34来源:有何不可 作者:有何不可 举报 点击:56151次 项目部署到Apache Http Server上面,通过apachectl -t 检测配置文件也没有问题.可是通过浏览器访问,却出现了“you don't have permission to access / on this server”. 项目部署到Apache Http Server上面,通过apachectl -t 检测配置文件也没有问题.可是通过浏览器访问,却出现了“you don't h

CentOS配置PHP出现You don&#39;t have permission to access on this serve

之前配置PHP环境的时候,在浏览器上输入http://192.168.1.124/index.php 遇到了You don't have permission to access on this server的问题 在网上搜了很多的资料,有的说是selinux的原因,把它关掉就可以了(一点都不管用!), 后来,找到了这篇文章的描述: ***********************分割线************************** " 在CentOS5.3+MySQL 5.0.45 +Ap

CentOS出错You don&amp;#39;t have permission to access on this server

检查http.conf发现没错之后,查找资料后发现时selinux的问题,所以须要关闭这个服务: 1 vi /etc/sysconfig/selinux 2 SELINUX=enforcing 改为 SELINUX=disabled 重新启动后生效 不需重新启动 运行命令: 1 setenforce 0 ********************************************************* 在CentOS5.3+MySQL 5.0.45 +Apache2.2.3 +P

安装wamp后,localhost访问报错“You don&#39;t have permission to access / on this server.”

今天装了一个wamp,在本地测试了一下,发现使用http://localhost/报错403,提示内容如下:"You don't have permission to access / on this server.".用127.0.0.1访问正常,phpMyAdmin也是同样的问题. 在网上搜索了一下有很多都是出现这个问题,但是不是不详细就是没找到解决办法.在此做一下记录,我是安装一路下一步所以安装目录都是默认的. 首先修改Apache,在wampserver下左键,Apache下有