ServerAdmin powermeter@example.com ServerName powermeter.exmaple.com ErrorLog ${APACHE_LOG_DIR}/powermeter.example.com_error.log CustomLog ${APACHE_LOG_DIR}/powermeter.example.com_access.log combined SetEnv APP_CONFIG "production" SetEnv APP_PRODUCTION_DATABASE_URI "postgres://username:password@localhost/database" WSGIDaemonProcess powermeter user=www-data group=www-data threads=5 WSGIScriptAlias / /var/www/vhosts/powermeter.example.com/backend/powermeter.wsgi WSGIScriptReloading On WSGIPassAuthorization On WSGIProcessGroup powermeter WSGIApplicationGroup %{GLOBAL} Order deny,allow Allow from all