- 论坛徽章:
- 0
|
配置在下面
- <IfModule mod_userdir.c>
- #
- # UserDir is disabled by default since it can confirm the presence
- # of a username on the system (depending on home directory
- # permissions).
- #
- #UserDir disabled
- #UserDir enabled lab
- #
- # To enable requests to /~user/ to serve the user's public_html
- # directory, remove the "UserDir disable" line above, and uncomment
- # the following line instead:
- #
- UserDir "/home/labftp/upload/*/html"
- </IfModule>
- #
- # Control access to UserDir directories. The following is an example
- # for a site where these directories are restricted to read-only.
- #
- <Directory /home/labftp/upload/*/html>
- AllowOverride FileInfo AuthConfig Limit
- Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
- <Limit GET POST OPTIONS>
- Order allow,deny
- Allow from all
- </Limit>
- <LimitExcept GET POST OPTIONS>
- Order deny,allow
- Deny from all
- </LimitExcept>
- </Directory>
复制代码
然后userdir目录的权限也设置成了755,selinux也关掉了,但是访问用户目录是还是报403 Forbidden。网上搜了很多,都是因为selinux的原因,但是我已经关了selinux,还是不行,大家有什么建议?今天弄了一晚上这个问题还没有解决。
[ 本帖最后由 diker007 于 2009-1-9 22:03 编辑 ] |
|