aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/conf-templates/apache-vhost.conf.j2
blob: 3246d27f33166ce43f156a1fef0075043e650fc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<VirtualHost *:80>
    ServerAdmin admin@example.com      # CUSTOMIZE
    ServerName ihatemoney.example.com  # CUSTOMIZE

    WSGIDaemonProcess ihatemoney user=www-data group=www-data threads=5 python-path={{ pkg_path }} {% if venv_path %}python-home={{ venv_path }}{% endif %}
    WSGIScriptAlias / {{ pkg_path }}/wsgi.py
    WSGIPassAuthorization On

    ErrorLog /var/log/apache2/ihatemoney.example.com_error.log
    CustomLog /var/log/apache2/ihatemoney.example.com_access.log combined

    <Directory {{ pkg_path }}>
       WSGIProcessGroup ihatemoney
       WSGIApplicationGroup %{GLOBAL}
       Order deny,allow
       Allow from all
    </Directory>

    Alias /static/ {{ pkg_path }}/static/
</VirtualHost>