File viewvc.conf of Package viewvc
# 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
Alias /viewvc-docroot "/srv/viewvc/templates/default/docroot"
<Directory /srv/viewvc/templates/default/docroot>
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>