diff options
-rw-r--r-- | sample-apache2.conf | 14 |
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> |