Show More
@@ -1,64 +1,64 b'' | |||||
1 | # Auto generated configuration for use with the Apache mod_dav_svn module. |
|
1 | # Auto generated configuration for use with the Apache mod_dav_svn module. | |
2 | # |
|
2 | # | |
3 | # WARNING: Make sure your Apache instance which runs the mod_dav_svn module is |
|
3 | # WARNING: Make sure your Apache instance which runs the mod_dav_svn module is | |
4 | # only accessible by RhodeCode. Otherwise everyone is able to browse |
|
4 | # only accessible by RhodeCode. Otherwise everyone is able to browse | |
5 | # the repositories or run subversion operations (checkout/commit/etc.). |
|
5 | # the repositories or run subversion operations (checkout/commit/etc.). | |
6 | # |
|
6 | # | |
7 | # The mod_dav_svn module does not support subversion repositories which are |
|
7 | # The mod_dav_svn module does not support subversion repositories which are | |
8 | # organized in subfolders. To support the repository groups of RhodeCode it is |
|
8 | # organized in subfolders. To support the repository groups of RhodeCode it is | |
9 | # required to provide a <Location> block for each group pointing to the |
|
9 | # required to provide a <Location> block for each group pointing to the | |
10 | # repository group sub folder. |
|
10 | # repository group sub folder. | |
11 | # |
|
11 | # | |
12 | # To ease the configuration RhodeCode auto generates this file whenever a |
|
12 | # To ease the configuration RhodeCode auto generates this file whenever a | |
13 | # repository group is created/changed/deleted. Auto generation can be configured |
|
13 | # repository group is created/changed/deleted. Auto generation can be configured | |
14 | # in the ini file. |
|
14 | # in the ini file. | |
15 | # |
|
15 | # | |
16 | # To include this configuration into your apache config you can use the |
|
16 | # To include this configuration into your apache config you can use the | |
17 | # `Include` directive. See the following example snippet of a virtual host how |
|
17 | # `Include` directive. See the following example snippet of a virtual host how | |
18 | # to include this configuration file. |
|
18 | # to include this configuration file. | |
19 | # |
|
19 | # | |
20 | # <VirtualHost *:8080> |
|
20 | # <VirtualHost *:8080> | |
21 | # ServerAdmin webmaster@localhost |
|
21 | # ServerAdmin webmaster@localhost | |
22 | # DocumentRoot /var/www/html |
|
22 | # DocumentRoot /var/www/html | |
23 | # ErrorLog ${APACHE_LOG_DIR}/error.log |
|
23 | # ErrorLog ${'${APACHE_LOG_DIR}'}/error.log | |
24 | # CustomLog ${APACHE_LOG_DIR}/access.log combined |
|
24 | # CustomLog ${'${APACHE_LOG_DIR}'}/access.log combined | |
25 | # Include /path/to/generated/mod_dav_svn.conf |
|
25 | # Include /path/to/generated/mod_dav_svn.conf | |
26 | # </VirtualHost> |
|
26 | # </VirtualHost> | |
27 |
|
27 | |||
28 |
|
28 | |||
29 | <Location ${location_root}> |
|
29 | <Location ${location_root}> | |
30 | # The mod_dav_svn module takes the username from the apache request object. |
|
30 | # The mod_dav_svn module takes the username from the apache request object. | |
31 | # Without authorization this will be empty and no username is logged for the |
|
31 | # Without authorization this will be empty and no username is logged for the | |
32 | # transactions. This will result in "(no author)" for each revision. The |
|
32 | # transactions. This will result in "(no author)" for each revision. The | |
33 | # following directives implement a fake authentication that allows every |
|
33 | # following directives implement a fake authentication that allows every | |
34 | # username/password combination. |
|
34 | # username/password combination. | |
35 | AuthType Basic |
|
35 | AuthType Basic | |
36 | AuthName "Subversion proxy" |
|
36 | AuthName "Subversion proxy" | |
37 | AuthBasicProvider anon |
|
37 | AuthBasicProvider anon | |
38 | Anonymous * |
|
38 | Anonymous * | |
39 | Require valid-user |
|
39 | Require valid-user | |
40 |
|
40 | |||
41 | DAV svn |
|
41 | DAV svn | |
42 | SVNParentPath ${parent_path_root} |
|
42 | SVNParentPath ${parent_path_root} | |
43 | SVNListParentPath ${'On' if svn_list_parent_path else 'Off'} |
|
43 | SVNListParentPath ${'On' if svn_list_parent_path else 'Off'} | |
44 |
|
44 | |||
45 | Allow from all |
|
45 | Allow from all | |
46 | Order allow,deny |
|
46 | Order allow,deny | |
47 | </Location> |
|
47 | </Location> | |
48 |
|
48 | |||
49 | % for repo_group in repo_groups: |
|
49 | % for repo_group in repo_groups: | |
50 | <Location ${location_root_stripped}${repo_group.full_path}> |
|
50 | <Location ${location_root_stripped}${repo_group.full_path}> | |
51 | AuthType Basic |
|
51 | AuthType Basic | |
52 | AuthName "Subversion proxy" |
|
52 | AuthName "Subversion proxy" | |
53 | AuthBasicProvider anon |
|
53 | AuthBasicProvider anon | |
54 | Anonymous * |
|
54 | Anonymous * | |
55 | Require valid-user |
|
55 | Require valid-user | |
56 |
|
56 | |||
57 | DAV svn |
|
57 | DAV svn | |
58 | SVNParentPath ${parent_path_root_stripped}${repo_group.full_path} |
|
58 | SVNParentPath ${parent_path_root_stripped}${repo_group.full_path} | |
59 | SVNListParentPath ${'On' if svn_list_parent_path else 'Off'} |
|
59 | SVNListParentPath ${'On' if svn_list_parent_path else 'Off'} | |
60 |
|
60 | |||
61 | Allow from all |
|
61 | Allow from all | |
62 | Order allow,deny |
|
62 | Order allow,deny | |
63 | </Location> |
|
63 | </Location> | |
64 | % endfor |
|
64 | % endfor |
General Comments 0
You need to be logged in to leave comments.
Login now