23 lines
797 B
Text
23 lines
797 B
Text
<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>
|
|
|