From cdf903383a0fb2df08f40310bbbe3659362184e1 Mon Sep 17 00:00:00 2001 From: 0livd <0livd@users.noreply.github.com> Date: Mon, 10 Apr 2017 17:46:39 +0100 Subject: Add the possibilty to run ihatemoney via Apache mod_wsgi (#191) Add the possibilty to run ihatemoney via Apache mod_wsgi ihatemoney.wsgi is the entry point for mod_wsgi. A virtualenv can be activated if its path is specified as an env var in the apache virtual host file --- conf/apache-vhost.conf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 conf/apache-vhost.conf (limited to 'conf') diff --git a/conf/apache-vhost.conf b/conf/apache-vhost.conf new file mode 100644 index 0000000..4b9dad0 --- /dev/null +++ b/conf/apache-vhost.conf @@ -0,0 +1,16 @@ + + ServerAdmin admin@example.com + ServerName ihatemoney.example.com + # Uncomment the python-home option if you use a virtualenv + WSGIDaemonProcess ihatemoney user=www-data group=www-data threads=5 # python-home=/path/to/your/venv + WSGIScriptAlias / /path/to/ihatemoney/ihatemoney.wsgi + ErrorLog /var/log/apache2/ihatemoney.example.com_error.log + CustomLog /var/log/apache2/ihatemoney.example.com_access.log combined + + WSGIProcessGroup ihatemoney + WSGIApplicationGroup %{GLOBAL} + Order deny,allow + Allow from all + +Alias /static/ /path/to/ihatemoney/budget/static/ + -- cgit v1.1