summaryrefslogtreecommitdiff
path: root/sample-apache2.conf
blob: dc2238d2e2fa51fd4677eaab7c483d5340cb012f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# sample apache(2) configuration for patch-tracking system

# static content, such as images, css, etc
Alias /patch-tracking.debian.net/static /scratch/patch-tracker/static

# all other requests go through a central handler
AliasMatch /patch-tracking.debian.net.* /scratch/patch-tracker/pagehandler.py

<Directory /scratch/patch-tracker>
  AddHandler mod_python .py
  PythonHandler pagehandler 
  # mod_python doesn't set cwd, so we need to hint this to the handler
  SetEnv PT_INSTALLROOT /scratch/patch-tracker
</Directory>