Project

General

Profile

http access to svn repos

Added by Alexandr Gudo over 7 years ago

Hi to all!

i'm trying to use latest Redmine appliance from here https://www.turnkeylinux.org/redmine and i dont understand how config or settingup it to use svn repo over http.

When i try to acces over http:// i have problem with Access forbidden. But over svn:// no problem.

Apache error.log:

App 1647 stderr: svn: E175013: Unable to connect to a repository at URL 'http://192.168.1.8/svn/qaz'
App 1647 stderr: svn: E175013: Access to '/svn/qaz' forbidden
[Fri Jan 13 10:32:22.850445 2017] [authz_core:error] [pid 1219:tid 140653954569984] [client 192.168.1.8:49661] AH01630: client denied by server configuration: /svn/qaz.html
www/redmine# *RAILS_ENV=production bin/about*

sh: 1: darcs: not found
sh: 1: cvs: not found
Environment:
  Redmine version                3.2.0.stable
  Ruby version                   2.1.5-p273 (2014-11-13) [x86_64-linux-gnu]
  Rails version                  4.2.5
  Environment                    production
  Database adapter               Mysql2
SCM:
  Subversion                     1.8.10
  Mercurial                      3.1.2
  Bazaar                         2.7.0
  Git                            2.1.4
  Filesystem                     
Redmine plugins:
  no plugin installed

Please help me configure them to get access to repos over http

Thanks in advance!

My system is Debian 8, apache 2.4

My /etc/apache2/conf-available/redmine_webaccess.conf and /etc/apache2/conf/redmine.conf:

PerlModule Apache::DBI
PerlOptions +GlobalRequest

PerlLoadModule Apache::Redmine
<Location /svn>
  DAV svn

  SVNAllowBulkUpdates Prefer

  SVNParentPath "/svn/repos/svn" 
  Order deny,allow
  Deny from all
  Satisfy any
  LimitXMLRequestBody 0

  SVNPathAuthz off

  PerlAccessHandler Apache::Authn::Redmine::access_handler
  PerlAuthenHandler Apache::Authn::Redmine::authen_handler
  AuthType Basic
  AuthName "Redmine SVN Repository" 
  AuthUserFile /dev/null

  # read access
  <Limit GET PROPFIND OPTIONS REPORT>
     Require valid-user
     Allow from all
     Satisfy any
  </Limit>
  # write access
  <LimitExcept GET PROPFIND OPTIONS REPORT>
    Require valid-user
  </LimitExcept>

  RedmineDSN "DBI:mysql:database=redmine_production;host=localhost" 

  RedmineDbUser "redmine" 
  RedmineDbPass "secret" 
</Location>

ServerAdmin  webmaster@localhost
SetEnv RAILS_ENV production

RewriteEngine On

# Rewrite index to check for static
RewriteRule ^/$ /index.html [QSA]

# Rewrite to check for Rails cached page
RewriteRule ^([^.]+)$ $1.html [QSA]

DocumentRoot /var/www/redmine/public/

<Directory /var/www/redmine/public/>
    Options +FollowSymLinks
    AllowOverride all
    Order allow,deny
    Allow from all
</Directory>

By the way if it matters I changed the location of repos to /svn/repos/svn wich mounted as iscsi


Replies (3)

RE: http access to svn repos - Added by James Cutler about 7 years ago

Any luck? We are having the same issue. It seems access_handler and authen_handler are returning ok but we are still forbidden.

RE: http access to svn repos - Added by James Cutler about 7 years ago

We finally got ours working. Not we're using nginx as well.

We placed the svn location appache configuraitons in dav_svn.conf, and NOT in the sites-available conf files.

In the sites-available directory, we placed a simple configuration:

<VirtualHost *:81>
DocumentRoot /var/www/html
<Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost>

Hope that helps.

RE: http access to svn repos - Added by Alexandr Gudo about 7 years ago

unfortunately not. can describe in detail your actions?
thanks

    (1-3/3)