powermeter/apache2_sample_config.conf

24 lines
797 B
Text
Raw Normal View History

2021-01-24 13:58:29 +01:00
<VirtualHost *:80>
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
<Directory /var/www/vhosts/powermeter.example.com/backend>
WSGIProcessGroup powermeter
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
</VirtualHost>