From a220af7b9d30e1b8ac005262c13e68a7a0bae5e6 Mon Sep 17 00:00:00 2001 From: Sean Finney Date: Tue, 1 Sep 2009 23:53:04 +0200 Subject: update apache config to include WSGIDaemonProcess and friends sample apache2 config now includes the various WSGI options needed to run as a dedicated user. --- sample-apache2.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 +# +# WSGIProcessGroup patch-tracker +# # # 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 + + WSGIProcessGroup patch-tracker + + + +# 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 -- cgit v1.2.3