Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1157553
  • 博文数量: 181
  • 博客积分: 4968
  • 博客等级: 上校
  • 技术积分: 1867
  • 用 户 组: 普通用户
  • 注册时间: 2008-01-13 21:52
文章分类

全部博文(181)

文章存档

2015年(2)

2013年(6)

2012年(22)

2011年(41)

2010年(27)

2009年(51)

2008年(32)

我的朋友

分类: 系统运维

2012-12-05 10:17:00

 

Apache有个userdir的模块

以前没用过,想用一下,可是就是很403,日志也是简单的
Permission denied: access to /~username denied

后来在另一台用yum安装的服务器上找到答案。
# The path to the end user account ‘public_html’ directory must be
# accessible to the webserver userid. This usually means that ~userid
# must have permissions of 711, ~userid/public_html must have permissions
# of 755, and documents contained therein must be world-readable.
# Otherwise, the client will only receive a “403 Forbidden” message.

具体操作过程就是 
#chmod -R 711 /home/*
#cd /home/username/
#chmod 755 -R public_html

一切正常了。

本文转自:%E4%B9%8Buserdir/

阅读(1800) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~