diff options
| author | 0livd <0livd@users.noreply.github.com> | 2017-04-10 17:46:39 +0100 |
|---|---|---|
| committer | JocelynDelalande <JocelynDelalande@users.noreply.github.com> | 2017-04-10 18:46:39 +0200 |
| commit | cdf903383a0fb2df08f40310bbbe3659362184e1 (patch) | |
| tree | 11a85dd51abdc6268f4708c0b89502fc22202d65 /conf/apache-vhost.conf | |
| parent | deff0f8bc3d667bbe0dd92ebceef34507895fdef (diff) | |
| download | ihatemoney-mirror-cdf903383a0fb2df08f40310bbbe3659362184e1.zip ihatemoney-mirror-cdf903383a0fb2df08f40310bbbe3659362184e1.tar.gz ihatemoney-mirror-cdf903383a0fb2df08f40310bbbe3659362184e1.tar.bz2 | |
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
Diffstat (limited to 'conf/apache-vhost.conf')
| -rw-r--r-- | conf/apache-vhost.conf | 16 |
1 files changed, 16 insertions, 0 deletions
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 @@ +<VirtualHost *:80> + 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 +<Directory /path/to/ihatemoney> + WSGIProcessGroup ihatemoney + WSGIApplicationGroup %{GLOBAL} + Order deny,allow + Allow from all +</Directory> +Alias /static/ /path/to/ihatemoney/budget/static/ +</VirtualHost> |
