我有一个与Redmine集成的Subversion(Apache充当服务器)有关的奇怪的身份validation问题。
我尝试了任何我能想到的,但没有任何工作(我找不到这个问题的确切原因)。
configuration如下:
<Location /> DAV svn LimitXMLRequestBody 0 SVNPathAuthz off SVNParentPath "/srv/svn" SVNListParentPath off AuthType Basic AuthName "Repository" PerlAccessHandler Apache::Authn::Redmine::access_handler PerlAuthenHandler Apache::Authn::Redmine::authen_handler RedmineDSN "DBI:mysql:database=redmine;host=repository.host.tld" RedmineDbUser "redmine_user" RedmineDbPass "redmine_pass" Require valid-user Order allow,deny Allow from 192.168.3.0/24 xxxx Satisfy all </Location>
如果我尝试访问从内部networking(192.168.3.0/24)的存储库(读/写),每件事情都按预期正常工作,但是当我从外部地址(xxxx)尝试同样的事情时,出现以下错误:
更新'。':
svn: E175002: Unable to connect to a repository at URL 'http://repository.host.tld/repo' svn: E175002: Unexpected HTTP status 500 'Internal Server Error' on '/repo' svn: E175002: Additional errors: svn: E175002: OPTIONS request on '/repo' failed: 500 Internal Server Error
Apache在错误日志中报告以下内容:
AuthUserFile not specified in the configuration
就像我说的,我尝试了networking上的任何build议,没有任何工作,除了设置满意 。 设置满意对我来说是一个非常糟糕的主意,因为在某些情况下禁用了身份validation和授权( http://httpd.apache.org/docs/2.2/mod/core.html#satisfy )。
Redmine版本是:2.5.1(2014-03-29)(稳定)
Subversion版本是:1.7.0
Apache版本是:Apache / 2.2.22
任何build议将不胜感激。 谢谢!
您在位置configuration中缺lessAuthUserFile /dev/null
参数。