diff options
author | sean finey <seanius@debian.org> | 2009-02-12 19:16:42 +0100 |
---|---|---|
committer | sean finey <seanius@debian.org> | 2009-02-12 19:16:42 +0100 |
commit | c32f9fd01791b120722b3da7a8509144efc2faf6 (patch) | |
tree | b74663f8492ac386847d060f18efaf16f46404f7 | |
parent | 34e51e2c294d26ca409b7210d230359b3df02b04 (diff) | |
download | patch-tracker-wsgi.tar.gz |
updated apache conf for wsgiwsgi
-rw-r--r-- | sample-apache2.conf | 24 |
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 |