ihatemoney/conf/apache-vhost.conf
0livd 69116884b9 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
2017-03-29 18:08:11 +02:00

17 lines
687 B
Text

<VirtualHost *:80>
# Uncomment the following line if you use a virtualenv
# SetEnv IHATEMONEY_VENV_PATH /path/to/your/venv
ServerAdmin admin@example.com
ServerName ihatemoney.example.com
WSGIDaemonProcess ihatemoney user=www-data group=www-data threads=5
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>