1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
<IfModule mod_python.c>
#################################################
# Roundup Issue tracker
#################################################
# enable Python optimizations (like 'python -O')
PythonOptimize On
# let apache handle static files from 'html' directories
AliasMatch ^/roundup/([^/]+)/@@file/(.*) /var/lib/roundup/trackers/$1/html/$2
# everything else is handled by roundup web UI
AliasMatch ^/roundup/([^/]+)/(?!@@file/)(.*) /var/lib/roundup/trackers/$1/dummy.py/$2
# roundup requires a slash after tracker name - add it if missing
RedirectMatch permanent ^/roundup/([^/]+)$ /roundup/$1/
# common settings for all roundup trackers
<Directory /var/lib/roundup/trackers/*>
Order allow,deny
Allow from all
AllowOverride None
Options None
AddHandler python-program .py
PythonHandler roundup.cgi.apache
# uncomment the following line to see tracebacks in the browser
# (note that *some* tracebacks will be displayed anyway)
#PythonDebug On
</Directory>
# roundup tracker homes
<Directory /var/lib/roundup/trackers/support>
PythonOption TrackerHome /var/lib/roundup/trackers/support
PythonOption TrackerLanguage en
</Directory>
</IfModule>
|