提问的智慧SVN版 - 提问者必读
发新话题
打印

[求助] 重大问题:为何用IE访问时不出认证框

重大问题:为何用IE访问时不出认证框

我在RHEL5.0下用自带的subversion和apacha配置了一个版本管理系统,在使用时遇到如下问题(很关键):
在使用IE访问http://localhost/svn/project1时出现信息:
Forbidden               You don't have permission to access /svn/project1 on this server.
--------------------------------------------------------------------------------
Apache/2.2.3 (Red Hat) Server at 192.1.0.251 Port 80
我的配置如下:
subversion.conf内容:

LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so

<Location /svn >   
     DAV svn   
     SVNParentPath /home/trac/repos  
     AuthType Basic   
     AuthName "Subversion Repository"   
     AuthUserFile /home/trac/projects/.htpasswd   
     AuthzSVNAccessFile /home/trac/projects/svnaccess   
     <LimitExcept GET PROPFIND OPTIONS REPORT>
         Require valid-user   
     </LimitExcept>  
</Location>
解释一下:mod_dav 以及mod_dav_svn的载入都在http.conf文件中
svnaccess的内容如下:
[/]  
admin = rw
wm = rw

[project1:/]
admin = rw
wm = rw

如果将svnaccess的内容改为:
[/]  
admin = rw
wm = rw

[project1:/]
*  =  r
admin = rw
wm = rw
之后就能够访问,但是不出认证框,任何人都可以访问了

不知道是什么问题,救急。

TOP

不能访问时看看error log提示什么,是不是没开文件的权限

TOP

回复 2# ThinkPad 的帖子

error log提示:[error] [client 192.1.0.120] Access denied: - GET project1:/

TOP

你有没有用apache里的工具htpasswd制作AuthUserFile 文件?

TOP

回复 4# keenkid 的帖子

AuthUserFile /home/trac/projects/.htpasswd 就是用apache里的工具htpasswd制作的

TOP

主要是apache相关的权限了,检查一下下面的两个地方:

修改里面相关内容,试一下
<Directory />

    Options FollowSymLinks

#    AllowOverride None

     AllowOverride all

     Order deny,allow

#    Deny from all

     Allow from all

</Directory>

还有;
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
/allow                                                                                                            
    # 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.2/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:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

TOP

回复 6# robohua 的帖子

解决了

TOP

发新话题
订阅 我用Subversion - SVN中文论坛 邮件列表:iUseSVN@googlegroups.com
电子邮件:
网站重要事项将会在这个列表进行通知,点击这里浏览存于列表中的所有邮件