57 lines
1.3 KiB
Plaintext
57 lines
1.3 KiB
Plaintext
# 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>
|
|
|
|
ScriptAlias /viewvc /srv/viewvc/bin/cgi/viewvc.cgi
|
|
|
|
<Directory "/srv/viewvc/bin/cgi">
|
|
AllowOverride None
|
|
Options +ExecCGI
|
|
Order allow,deny
|
|
Allow from all
|
|
</Directory>
|
|
|
|
# apache can serve the static files directly
|
|
Alias /viewvc-docroot "/srv/viewvc/templates/docroot"
|
|
<Directory /srv/viewvc/templates/docroot/>
|
|
AllowOverride None
|
|
Order allow,deny
|
|
Allow from all
|
|
</Directory>
|
|
|
|
</IfDefine>
|
|
|
|
<IfModule mod_python.c>
|
|
<IfDefine SVN_VIEWCVS_MODPYTHON>
|
|
|
|
<Directory "/srv/viewvc/bin/mod_python">
|
|
AllowOverride None
|
|
#Options +ExecCGI
|
|
Order allow,deny
|
|
Allow from all
|
|
</Directory>
|
|
|
|
ScriptAlias /viewvc "/srv/viewvc/bin/mod_python/viewvc.py"
|
|
<Location /viewvc>
|
|
AddHandler python-program .py
|
|
PythonPath "['/srv/viewvc/bin/mod_python']+sys.path"
|
|
PythonHandler handler
|
|
#PythonDebug On
|
|
#AddDefaultCharset UTF-8
|
|
</Location>
|
|
|
|
# apache can serve the static files directly
|
|
Alias /viewvc-docroot "/srv/viewvc/templates/docroot"
|
|
<Directory /srv/viewvc/templates/docroot/>
|
|
AllowOverride None
|
|
Order allow,deny
|
|
Allow from all
|
|
</Directory>
|
|
|
|
</IfDefine>
|
|
</IfModule>
|
|
|