##// END OF EJS Templates
svn: Add fake authentication to the mod_dav_svn config template.
svn: Add fake authentication to the mod_dav_svn config template.

File last commit:

r568:0a96e278 default
r568:0a96e278 default
Show More
mod-dav-svn.conf.mako
64 lines | 2.3 KiB | application/x-mako | MakoHtmlLexer
Martin Bornhold
svn: Update and add doc strings and comments.
r560 # Auto generated configuration for use with the Apache mod_dav_svn module.
Martin Bornhold
svn: Add fake authentication to the mod_dav_svn config template.
r568 #
# WARNING: Make sure your Apache instance which runs the mod_dav_svn module is
# only accessible by RhodeCode. Otherwise everyone is able to browse
# the repositories or run subversion operations (checkout/commit/etc.).
#
Martin Bornhold
svn: Update and add doc strings and comments.
r560 # The mod_dav_svn module does not support subversion repositories which are
# organized in subfolders. To support the repository groups of RhodeCode it is
# required to provide a <Location> block for each group pointing to the
# repository group sub folder.
Martin Bornhold
svn: Add fake authentication to the mod_dav_svn config template.
r568 #
Martin Bornhold
svn: Update and add doc strings and comments.
r560 # To ease the configuration RhodeCode auto generates this file whenever a
# repository group is created/changed/deleted. Auto generation can be configured
# in the ini file.
Martin Bornhold
svn: Add fake authentication to the mod_dav_svn config template.
r568 #
# To include this configuration into your apache config you can use the
# `Include` directive. See the following example snippet of a virtual host how
# to include this configuration file.
#
# <VirtualHost *:8080>
# ServerAdmin webmaster@localhost
# DocumentRoot /var/www/html
# ErrorLog ${APACHE_LOG_DIR}/error.log
# CustomLog ${APACHE_LOG_DIR}/access.log combined
# Include /path/to/generated/mod_dav_svn.conf
# </VirtualHost>
Martin Bornhold
svn: Add template to generate the apache mod_dav_svn config for all repository groups.
r558
<Location ${location_root}>
Martin Bornhold
svn: Add fake authentication to the mod_dav_svn config template.
r568 # The mod_dav_svn module takes the username from the apache request object.
# Without authorization this will be empty and no username is logged for the
# transactions. This will result in "(no author)" for each revision. The
# following directives implement a fake authentication that allows every
# username/password combination.
AuthType Basic
AuthName "Subversion proxy"
AuthBasicProvider anon
Anonymous *
Require valid-user
Martin Bornhold
svn: Add template to generate the apache mod_dav_svn config for all repository groups.
r558 DAV svn
SVNParentPath ${parent_path_root}
SVNListParentPath ${'On' if svn_list_parent_path else 'Off'}
Martin Bornhold
svn: Add fake authentication to the mod_dav_svn config template.
r568
Martin Bornhold
svn: Add template to generate the apache mod_dav_svn config for all repository groups.
r558 Allow from all
Order allow,deny
</Location>
% for repo_group in repo_groups:
Martin Bornhold
svn: Moved code and make a small bugfix.
r563 <Location ${location_root_stripped}${repo_group.full_path}>
Martin Bornhold
svn: Add fake authentication to the mod_dav_svn config template.
r568 AuthType Basic
AuthName "Subversion proxy"
AuthBasicProvider anon
Anonymous *
Require valid-user
Martin Bornhold
svn: Add template to generate the apache mod_dav_svn config for all repository groups.
r558 DAV svn
Martin Bornhold
svn: Moved code and make a small bugfix.
r563 SVNParentPath ${parent_path_root_stripped}${repo_group.full_path}
Martin Bornhold
svn: Add template to generate the apache mod_dav_svn config for all repository groups.
r558 SVNListParentPath ${'On' if svn_list_parent_path else 'Off'}
Martin Bornhold
svn: Add fake authentication to the mod_dav_svn config template.
r568
Martin Bornhold
svn: Add template to generate the apache mod_dav_svn config for all repository groups.
r558 Allow from all
Order allow,deny
</Location>
% endfor