Apache2.4中出现You don't have permission to access / on this server.
来源:互联网 发布:mac系统如何进入终端 编辑:程序博客网 时间:2024/06/18 04:09
注意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
0 0
- Apache2.4中出现You don't have permission to access / on this server.
- 配置apache2.4修改documentRoot出现You don't have permission to access / on this server
- yii中访问出现的错误: You don't have permission to access / on this server
- You don't have permission to access / on this server
- You don't have permission to access /*** on this server
- You don't have permission to access / on this server.
- You don't have permission to access on this server.
- You don't have permission to access / on this server.
- You don't have permission to access ××× on this server.
- You don't have permission to access / on this server
- You don't have permission to access / on this server.
- You don’t have permission to access/on this server
- You don't have permission to access / on this server.
- You don't have permission to access / on this server.
- You don't have permission to access / on this server.
- WAMP Server多站点出现You don t have permission to access / on this server错误
- apache出现You don't have permission to access / on this server. 提示
- CentOS Apache经常出现 You don't have permission to access on this server的问题
- Yii2 redis 使用
- python udpserver decorator 修饰类
- ADT+SDK+JDK+elipse的理解
- 实时监听textarea并限制最大字符数
- Linux 文件权限简单说明
- Apache2.4中出现You don't have permission to access / on this server.
- Python3 列表List或元组tuple中元素分解(赋值操作)
- CodeForces 195B After Training(STL)
- iOS应用程序生命周期(前后台切换,应用的各种状态)详解
- 文件上传保存没有Nginx最好放Tomcat里面
- JScrollPane中添加JPanel不出现滚动条
- 9. 斐波那契数列
- 【ecos】编码规范
- 线性回归、逻辑回归等问题对比分析总结