summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Finney <seanius@debian.org>2008-12-29 18:52:40 +0100
committerSean Finney <seanius@debian.org>2008-12-29 18:55:39 +0100
commitb7c8fe2fb46a09bc4eee07d0076c3cd6383ece87 (patch)
treeab95fed452b81b24405deafae36debaa9f3e6c2e
parent9b6688a7ea6893cb0f9df55abda04a7963883df7 (diff)
downloadpatch-tracker-b7c8fe2fb46a09bc4eee07d0076c3cd6383ece87.tar.gz
add a sample apache configuration
-rw-r--r--sample-apache2.conf14
1 files changed, 14 insertions, 0 deletions
diff --git a/sample-apache2.conf b/sample-apache2.conf
new file mode 100644
index 0000000..dc2238d
--- /dev/null
+++ b/sample-apache2.conf
@@ -0,0 +1,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>