2020-03-30 10:58:12 +00:00
|
|
|
# Example configuration for a subversion viewvc repository
|
|
|
|
|
#
|
|
|
|
|
# put the string SVN_VIEWCVS in /etc/sysconfig/apache2 APACHE_SERVER_FLAGS
|
|
|
|
|
# to enable the URL
|
|
|
|
|
# http://localhost/viewvc
|
|
|
|
|
<IfDefine SVN_VIEWCVS>
|
|
|
|
|
<IfModule mod_rewrite.c>
|
|
|
|
|
RewriteEngine On
|
|
|
|
|
RewriteRule /viewcvs(.*) /viewvc$1 [L,R]
|
|
|
|
|
</IfModule>
|
|
|
|
|
|
|
|
|
|
ScriptAlias /viewvc /srv/viewvc/bin/cgi/viewvc.cgi
|
|
|
|
|
|
|
|
|
|
<Directory "/srv/viewvc/bin/cgi">
|
|
|
|
|
AllowOverride None
|
|
|
|
|
Options +ExecCGI
|
|
|
|
|
<IfModule mod_authz_core.c>
|
|
|
|
|
Require all granted
|
|
|
|
|
</IfModule>
|
|
|
|
|
<IfModule !mod_authz_core.c>
|
|
|
|
|
Order allow,deny
|
|
|
|
|
Allow from all
|
|
|
|
|
</IfModule>
|
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
|
|
# apache can serve the static files directly
|
2021-08-27 08:30:55 +00:00
|
|
|
Alias /viewvc-docroot "/srv/viewvc/templates/default/docroot"
|
|
|
|
|
<Directory /srv/viewvc/templates/default/docroot>
|
2020-03-30 10:58:12 +00:00
|
|
|
AllowOverride None
|
|
|
|
|
<IfModule mod_authz_core.c>
|
|
|
|
|
Require all granted
|
|
|
|
|
</IfModule>
|
|
|
|
|
<IfModule !mod_authz_core.c>
|
|
|
|
|
Order allow,deny
|
|
|
|
|
Allow from all
|
|
|
|
|
</IfModule>
|
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
|
|
</IfDefine>
|
|
|
|
|
|