summaryrefslogtreecommitdiff
path: root/sample-apache2.conf
diff options
context:
space:
mode:
Diffstat (limited to 'sample-apache2.conf')
-rw-r--r--sample-apache2.conf24
1 files changed, 15 insertions, 9 deletions
diff --git a/sample-apache2.conf b/sample-apache2.conf
index dc2238d..cfcbd20 100644
--- a/sample-apache2.conf
+++ b/sample-apache2.conf
@@ -1,14 +1,20 @@
# sample apache(2) configuration for patch-tracking system
+#
+# In this example, the site is served directly from a dedicated virtualhost
+#
+
# static content, such as images, css, etc
-Alias /patch-tracking.debian.net/static /scratch/patch-tracker/static
+#Alias /static /home/seanius/patch-tracker/static
+# all other requests go through a central handler
+#WSGIScriptAlias / /home/seanius/patch-tracker/pagehandler.py
+#
+# In this example, the site is served relatively from the location
+# /patch-tracking.debian.net on the default virtualhost/server
+#
+
+# static content, such as images, css, etc
+Alias /patch-tracking.debian.net/static /home/seanius/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>
+WSGIScriptAlias /patch-tracking.debian.net /home/seanius/patch-tracker/pagehandler.py