Project

General

Profile

Problem about svn and redmine (in a subdirectory) » to-up-redmine-svn.conf

Oktay Arslan, 2011-01-08 00:34

 
1
# /svn location for users
2

    
3

    
4

    
5
PerlLoadModule Apache::Redmine
6

    
7
<Location /svn>
8

    
9
     DAV svn
10
     SVNListParentPath on 
11
     SVNParentPath "/opt/redmine/public/svn/"
12
     
13
     # Order deny,allow
14
     # Deny from all
15
     # Satisfy any
16

    
17
     AuthType Basic
18
     AuthName "DCSL Redmine SVN Repository" 
19
     AuthUserFile /etc/apache2/dav_svn.passwd 
20

    
21
     PerlAccessHandler Apache::Authn::Redmine::access_handler	     
22
     PerlAuthenHandler Apache::Authn::Redmine::authen_handler
23

    
24
     #read-only access    
25
     #<Limit GET PROPFIND OPTIONS REPORT>
26
       # Require valid-user
27

    
28
	# Allow from 127.0.0.1
29
	# Allow from xxx.xxx.xxx.xxx
30

    
31
	# Allow from another-ip
32
	# Satisfy any
33
     # </Limit>
34

    
35
     # write access
36
     # <LimitExcept GET PROPFIND OPTIONS REPORT>
37

    
38
     Require valid-user
39

    
40
     # ++++
41
     # Satisfy any  
42
     # ++++
43
     
44
     # </LimitExcept>
45

    
46
     ## for mysql
47
     
48
     # RedmineDSN "DBI:mysql:database=redmine;host=localhost" 
49
     
50
     ## for postgres
51
     
52
     RedmineDSN "DBI:Pg:dbname=redmine;host=localhost" 
53
     
54
     ## for SQLite3
55
     # RedmineDSN "DBI:SQLite:dbname=database.db" 
56

    
57
     RedmineDbUser "redmine" 
58
     RedmineDbPass "redmine" 
59
</Location>
60

    
61

    
62
<Location /sys>
63
      Order deny,allow
64
      Allow from xxx.xxx.xxx.xxx
65
      Deny from all
66
</Location>
67

    
68

    
69

    
(1-1/2)