嗨,我刚刚完成了所有步骤 http://www.redmine.org/projects/redmine/wiki/RedmineInstallUbuntuLucid#Automate-Repository-Creation
让redmine使用存储库的自动化。 (基本上我不知道它是如何工作的,是否假设每当我在redmine上创建一个项目时都会创建一个repo?)
但是我似乎无法让www.domain.com/svn工作。我无法从公众访问回购。 它会提示我输入密码。
/etc/apache2/conf.d/svn.config
PerlLoadModule Apache::Redmine DAV svn SVNParentPath "/var/svn" Order deny,allow Deny from all Satisfy any PerlAccessHandler Apache::Authn::Redmine::access_handler PerlAuthenHandler Apache::Authn::Redmine::authen_handler AuthType Basic AuthName "Redmine Subversion Repository" #read-only access Require valid-user Allow from [my server ip] # Allow from another-ip Satisfy any # write access Require valid-user ## for mysql RedmineDSN "DBI:mysql:database=redmine;host=localhost" RedmineDbUser "redmine" RedmineDbPass "password"
我尝试添加这些行
AuthUserFile /etc/apache2/dav_svn.passwd into svn.config
并做了一个和 sudo htpasswd -cm /etc/apache2/dav_svn.passwd test.user 并设置密码,但重启后,即使用户和密码也是如此......
我在这里缺少什么?
答案 0 :(得分:0)
无法得到满意的答案所以......我已经用
取代了PerlLoadModule Apache::Redmine Location /svn-redmine --> instead of /svn DAV svn SVNParentPath "/var/svn" Order deny,allow Deny from all Satisfy any PerlAccessHandler Apache::Authn::Redmine::access_handler PerlAuthenHandler Apache::Authn::Redmine::authen_handler AuthType Basic AuthName "Redmine Subversion Repository" #read-only access Require valid-user Allow from [my server ip] # Allow from another-ip Satisfy any # write access Require valid-user ## for mysql RedmineDSN "DBI:mysql:database=redmine;host=localhost" RedmineDbUser "redmine" RedmineDbPass "password"
并使用
在sites-available / svn下创建了另一个vhostServerName www.xxx.com Location /svn DAV svn SVNParentPath /var/svn SVNListParentPath On AuthType Basic AuthName "Public Subversion Repository" AuthUserFile "/etc/apache2/dav_svn.passwd" Require valid-user /Location
这对我有用