Apache2.4中出现You don't have permission to access / on this server.
2015-08-07 15:38
645 查看
注意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"外,记得要把对应的工作目录权限的地址一并修改过来,例如
DocumentRoot "/www" //工作目录
Directory "/www"> //对应的权限
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks///工作目录需要的权限
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride None//工作目录需要的权限
#
# Controls who can get stuff from this server.
#
Require all granted//工作目录需要的权限
</<b>Directory
修改好,运行,ok
在配置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"外,记得要把对应的工作目录权限的地址一并修改过来,例如
DocumentRoot "/www" //工作目录
Directory "/www"> //对应的权限
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks///工作目录需要的权限
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride None//工作目录需要的权限
#
# Controls who can get stuff from this server.
#
Require all granted//工作目录需要的权限
</<b>Directory
修改好,运行,ok
相关文章推荐
- 使用apache作为文件服务器(仅提供文件下载,不提供路径)
- 日常问题记录--nested exception is java.lang.NoClassDefFoundError: org/apache/oro/text/regex/MalformedPatternExcept
- Linux(centos)下安装Apache
- mac+apache+php+phpmyadmin集成php开发环境配置
- 升级win10后Apache2.2无法启动错误
- Apache安装(Linux)
- apache .htaccess文件详解和配置技巧总结
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)新的异常解决方案
- 使用Apache 的 FTP Client获取FTP服务器上的文件列表FTP response 421 received.Server closed connection问题的解决
- Mac下配置Apache服务
- Mac下使用Apache服务
- Mac 中配置Apache
- apache工作模式:prefork和worker
- centos6.5 kickstart +pxe+apache+dhcp+tftp+xinetd
- apache wicket 7.X之HelloWorld
- Ubuntu Server 14.04 & Apache2.4 虚拟主机、模块重写、隐藏入口文件配置
- win7(64位)php5.5-Apache2.4-环境安装
- Apache commons-pool对象池原理分析
- Apache commons-pool对象池原理分析
- 虚拟主机三种实现方式Apache