WSGIPythonHome $PYTHON_HOME

<VirtualHost *>
    WSGIDaemonProcess whyis user=$WHYIS_USER group=$WHYIS_GROUP threads=5 home=$WHYIS_APP_HOME
    WSGIScriptAlias / $WHYIS_APP_HOME/wsgi.py

    <Directory $WHYIS_APP_HOME>
        WSGIProcessGroup whyis
        WSGIApplicationGroup %{GLOBAL}
        <IfVersion < 2.3 >
            Order allow,deny
            Allow from all
        </IfVersion>
        <IfVersion >= 2.3>
            Require all granted
        </IfVersion>
        <IfModule mod_headers.c>
            Header set Access-Control-Allow-Origin "*"
        </IfModule>
    </Directory>
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
