31 lines
898 B
ApacheConf
31 lines
898 B
ApacheConf
# Apache configuration for a Devicehub
|
|
# It uses plain HTTP
|
|
# Change the following variables:
|
|
|
|
Define servername api.devicetag.io
|
|
# The domain used to access the server
|
|
Define appdir /path/to/app/dir
|
|
# The path where the app directory is. Apache must have access to this folder.
|
|
Define wsgipath ${appdir}/wsgi.wsgi
|
|
# The location of the .wsgi file
|
|
|
|
<VirtualHost *:80>
|
|
ServerName ${servername}
|
|
|
|
WSGIDaemonProcess "${servername}" threads=5 lang='en_US.UTF-8' locale='en_US.UTF-8'
|
|
WSGIScriptAlias / ${wsgipath}
|
|
|
|
# pass the required headers through to the application
|
|
WSGIPassAuthorization On
|
|
|
|
<Directory ${appdir}>
|
|
WSGIProcessGroup "${servername}"
|
|
WSGIApplicationGroup %{GLOBAL}
|
|
Require all granted
|
|
</Directory>
|
|
|
|
# mod_deflate
|
|
SetOutputFilter DEFLATE
|
|
SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png|deb|exe|dmg)$" no-gzip
|
|
</VirtualHost>
|