configuration-templates – Blame information for rev
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
7 | office | 1 | ######################################################################## |
2 | # Subversion - multi-repo configuration. # |
||
3 | # Sources: http://svnbook.red-bean.com/ # |
||
4 | # Depends on Apache modules: # |
||
5 | # dav, dav_svn, authz_svn, dontdothat, alias, auth_digest, # |
||
6 | # authn_core, authn_file, authz_core, authz_user # |
||
7 | # # |
||
8 | ######################################################################## |
||
9 | |||
10 | ## The trailing '/' in /svn/ is needed to browse repos with a browser! |
||
11 | RedirectMatch ^(/svn)$ $1/ |
||
12 | |||
13 | ## Tuning: |
||
14 | KeepAlive on |
||
15 | MaxKeepAliveRequests 1000 |
||
16 | |||
17 | |||
18 | # http://subversion.apache.org/docs/release-notes/1.7.html#server-performance-tuning |
||
19 | # Calculate your own values! |
||
20 | # For mod_dav_svn, a 1GB cache configuration with maximum data coverage looks like this |
||
21 | <IfModule dav_svn_module> |
||
22 | SVNInMemoryCacheSize 1048576 |
||
23 | SVNCacheFullTexts on |
||
24 | SVNCacheTextDeltas on |
||
25 | </IfModule> |
||
26 | |||
27 | ## Multiple Repos with Digest auth: |
||
28 | ## - AuthName is an arbitrary name that you choose for the authentication |
||
29 | ## domain. Most browsers display this name in the dialog box when prompting |
||
30 | ## for username and password. |
||
31 | ## - AuthType specifies the type of authentication to use. |
||
32 | ## - AuthUserFile specifies the location of the password file to use. |
||
33 | ## |
||
34 | <IfModule dav_svn_module> |
||
35 | <Location /svn/> |
||
36 | <ifModule mime_module> |
||
37 | RemoveEncoding .gz .tgz .Z |
||
38 | RemoveType .gz .tgz .Z |
||
39 | </ifModule> |
||
40 | |||
41 | ## Enable Subversion |
||
42 | DAV svn |
||
43 | |||
44 | ## Directory containing all repository for this path |
||
45 | SVNParentPath /space/svn/ |
||
46 | |||
47 | ## List repositories collection |
||
48 | SVNListParentPath on |
||
49 | |||
50 | ## Disable WebDAV automatic versioning |
||
51 | SVNAutoversioning off |
||
52 | |||
53 | ## Return a descriptive name for the repository. |
||
54 | SVNReposName "Project XYZ repo" |
||
55 | |||
56 | ## Anonymous access |
||
57 | AuthzSVNAnonymous off |
||
58 | |||
59 | ## XSL to display files - sample in subversion share distribution |
||
60 | # SVNIndexXSLT "/style/svnindex.xsl" |
||
61 | |||
62 | ## |
||
63 | ## You can use the htdigest program to create the password database: |
||
64 | ## htdigest -c "etc/apache24/svn-auth.passwd" SVN-repo admin |
||
65 | ## |
||
66 | ## Authentication: Digest |
||
67 | AuthType Digest |
||
68 | AuthName "SVN repositories" |
||
69 | AuthDigestProvider file |
||
70 | AuthDigestDomain /svn/ http://mirror.my.dom/svn2/ |
||
71 | AuthUserFile etc/apache24/svn-auth.passwd |
||
72 | ## Authentication: Basic |
||
73 | # AuthType Basic |
||
74 | # AuthName AuthName "SVN repositories" |
||
75 | # AuthUserFile etc/apache24/svn-auth.passwd |
||
76 | |||
77 | ## Authorization: Allow anonymous to read but only valid users may write. |
||
78 | <LimitExcept GET PROPFIND OPTIONS REPORT> |
||
79 | Require valid-user |
||
80 | </LimitExcept> |
||
81 | |||
82 | ## Do not limit large update requests |
||
83 | LimitXMLRequestBody 0 |
||
84 | </Location> |
||
85 | </IfModule> |
||
86 | |||
87 |