-
Notifications
You must be signed in to change notification settings - Fork 3
Apache2 with mod_wsgi
Mathias Bøhn Grytemark edited this page Sep 25, 2017
·
2 revisions
-
https://modwsgi.readthedocs.io/en/develop/user-guides/configuration-guidelines.html
-
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/modwsgi/
<VirtualHost *:80> ServerName challenge.localdomain ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined WSGIDaemonProcess challenge processes=2 threads=15 display-name=%{GROUP} python-home=/var/www/challenge/env python-path=/var/www/challenge WSGIProcessGroup challenge WSGIScriptAlias / /var/www/challenge/challenge/wsgi.py Alias /static/ /var/www/challenge/collected_static/ <Directory /var/www/challenge/challenge> Order deny,allow Allow from all </Directory> <Directory /var/www/challenge/challenge> <Files wsgi.py> Require all granted </Files> </Directory> </VirtualHost>