读书人

搞一天了You don#039;t have permission t

发布时间: 2012-04-28 11:49:53 作者: rapoo

求助:搞一天了You don't have permission to access /svn/ on this server.
我在一台linux部署svn+apache
<Location /svn/>
DAV svn
SVNParentPath /home/svn
AuthType Basic
AuthName "Subversion repository"
AuthUserFile /etc/svn-auth-file
Require Satisfy Any
AuthzSVNAccessFile /etc/svn-access-file
SVNListParentPath on

</Location>
ll /home/svn
total 4
drwxr-xr-x. 6 apache apache 4096 Oct 5 17:21 pro
[root@xflinux ~]# ll /home/svn/pro
total 24
drwxr-xr-x. 2 apache apache 4096 Oct 5 18:03 conf
drwxr-sr-x. 6 apache apache 4096 Oct 5 17:21 db
-r--r--r--. 1 apache apache 2 Oct 5 17:21 format
drwxr-xr-x. 2 apache apache 4096 Oct 5 17:21 hooks
drwxr-xr-x. 2 apache apache 4096 Oct 5 17:21 locks
-rw-r--r--. 1 apache apache 229 Oct 5 17:21 README.txt


在通过浏览器访问的时候:http://ip/svn/.显示登录界面:输入错的/etc/svn-access-file文件中
密码不能登录,输入/home/svn/pro/conf/passwd 中的密码也不能登录。
只有输入/etc/svn-access-file正确的用户名密码才能登录。
但是浏览器中显示:
Forbidden

You don't have permission to access /svn/ on this server.

在TortoiseSVN:access to http://ip/svn/pro/ forbidden;

[解决办法]
You don't have permission to access /svn/ on this server.

看看你的svn目录的权限吧,要OTHER可读可执行才对.

读书人网 >UNIXLINUX

热点推荐