diff options
author | Sean Finney <seanius@debian.org> | 2009-09-01 23:53:04 +0200 |
---|---|---|
committer | Sean Finney <seanius@debian.org> | 2009-09-01 23:53:04 +0200 |
commit | a220af7b9d30e1b8ac005262c13e68a7a0bae5e6 (patch) | |
tree | 047e5388415a639888d09dcfd2da3fe1a8e33a54 | |
parent | 7af57a0705066d8969b065ad9833ea7cb5f7a614 (diff) | |
download | patch-tracker-a220af7b9d30e1b8ac005262c13e68a7a0bae5e6.tar.gz |
update apache config to include WSGIDaemonProcess and friends
sample apache2 config now includes the various WSGI options needed
to run as a dedicated user.
-rw-r--r-- | sample-apache2.conf | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sample-apache2.conf b/sample-apache2.conf index cfcbd20..419b0a8 100644 --- a/sample-apache2.conf +++ b/sample-apache2.conf @@ -8,6 +8,9 @@ #Alias /static /home/seanius/patch-tracker/static # all other requests go through a central handler #WSGIScriptAlias / /home/seanius/patch-tracker/pagehandler.py +#<Location /> +# WSGIProcessGroup patch-tracker +#</Location> # # In this example, the site is served relatively from the location @@ -18,3 +21,10 @@ Alias /patch-tracking.debian.net/static /home/seanius/patch-tracker/static # all other requests go through a central handler WSGIScriptAlias /patch-tracking.debian.net /home/seanius/patch-tracker/pagehandler.py +<Location /patch-tracking.debian.net> + WSGIProcessGroup patch-tracker +</Location> + + +# and finally: an optional (highly recommend) config to run as a dedicated user +WSGIDaemonProcess patch-tracker user=patch-tracker group=patch-tracker processes=2 threads=10 maximum-requests=1000 umask=0022 display-name=patch-tracker |