File: roundup_apache

package info (click to toggle)
roundup 1.2.1-10%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 4,764 kB
  • ctags: 3,756
  • sloc: python: 30,296; sh: 1,497; perl: 23; makefile: 22
file content (30 lines) | stat: -rw-r--r-- 1,285 bytes parent folder | download | duplicates (8)
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>