You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
754 B
32 lines
754 B
4 years ago
|
LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so
|
||
|
|
||
|
<VirtualHost *:80>
|
||
|
#ServerAdmin webmaster@localhost
|
||
|
#ServerName www.example.com
|
||
|
#ServerAlias example.com
|
||
|
|
||
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||
|
|
||
|
LogLevel info
|
||
|
|
||
|
WSGIDaemonProcess APPNAME user=USER group=GROUP threads=5
|
||
|
WSGIScriptAlias / /var/www/wsgi-scripts/APPNAME.wsgi
|
||
|
|
||
|
<Directory /var/www/wsgi-scripts>
|
||
|
WSGIProcessGroup APPNAME
|
||
|
WSGIApplicationGroup %{GLOBAL}
|
||
|
|
||
|
<IfVersion < 2.4>
|
||
|
Order allow,deny
|
||
|
Allow from all
|
||
|
</IfVersion>
|
||
|
<IfVersion >= 2.4>
|
||
|
Require all granted
|
||
|
</IfVersion>
|
||
|
</Directory>
|
||
|
|
||
|
</VirtualHost>
|
||
|
|
||
|
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|