mac 中配置apache的DocumentRoot路径 出现403 Forbidden错误
来源:互联网 发布:医院果酸换肤 知乎 编辑:程序博客网 时间:2024/05/20 12:23
mac中配置apache
要将默认路径改为自己的路径
DocumentRoot "/Users/username/Documents"
<Directory "/Users/username/Documents">
总是出现 403 forbidden
You don't have permission to access / on this server
解决方法如下,
方法1.是否 DocumentRoot 和 Directory 中路径一致
方法2.Directory 中的设置改为
<Directory />
AllowOverride none
Options All
allow from all
</Directory>
方法3.看 /etc/apache2/users/ 下有没有当前的用户 conf 文件
“username”.conf
如果没有,建一个,比如你要改为 /User/abc/work 就要起一个 abc.conf 文件
<Directory "/Users/abc/Sites/">
Options All
AllowOverride none
Order allow,deny
Allow from all
</Directory>
方法4. 以上3个方法都没有搞定,那就是权限的问题了
将abc 用户下的work 设777或755
chmod 777 work
1 0
- mac 中配置apache的DocumentRoot路径 出现403 Forbidden错误
- Mac下配置apache 时出现问题,403Forbidden
- Mac下配置apache 时出现问题,403Forbidden
- Mac下配置apache 时出现问题,403Forbidden
- Apache2使用非默认DocumentRoot时出现HTTP 403 Forbidden错误
- Apache修改DocumentRoot后访问页面出现403错误的解决办法
- httpd.conf中一旦修改DocumentRoot为其他的目录出现Forbidden
- Apache 在更改DocumentRoot,或新增虚拟目录之后出现403错误的解决方法汇总详解(Linux)
- Apache 在更改DocumentRoot,或新增虚拟目录之后出现403错误的解决方法汇总详解(Linux)
- Apache 在更改DocumentRoot,或新增虚拟目录之后出现403错误的解决方法汇总详解(Linux)
- Apache Forbidden 403 错误
- 关于virtualBox中最小化安装CentOS7系统,更改httpd.conf中的DocumentRoot之后访问出现Forbidden的问题
- Apache [forbidden 403]错误的解决办法
- ubuntu下apache虚拟主机出现forbidden错误的解决办法
- nginx出现403 forbidden的错误
- 【旧资料整理】xampp Apache DocumentRoot跨分区配置要点及Access forbidden解决方法
- Apache访问index.html总是出现403 Forbidden错误的解决方案
- apache 2.4.9 出现forbidden错误
- Arc Engine 开发1
- hdu149850 years, 50 colors(好题)
- 关于iOS百度地图标注
- 应用跳转打开苹果,百度,高德地图应用并进入导航功能。
- STM32 软件仿真失败 ***** error 65: access violation at 0x40021000 : no ****'read' permission******
- mac 中配置apache的DocumentRoot路径 出现403 Forbidden错误
- empty(trim($str))报错原因
- 支持群聊+语音聊天+高仿QQ源码下载 (android前端+JAVA后台+spark<windows版聊天>)方便集成到自己系统
- VC++,掀起你的盖头来——谈VC++对象模型
- linux下mysql的root密码忘记解决方案
- 【加密教程】:加密教程二之凯撒密码
- php学习基础篇之HTML文字标记及换行、图片等标记的讲解
- CF#318-C - Bear and Poker-大水题t
- 路由器后台页面可以Ping通,但是显示502 badgateway