I have used a django-application, which essentially works fine. The only issue I've is the fact that you will find sometimes demands hanging, and that i aren't able to find the reason behind this. "Hanging" means, e.g. basically click a hyperlink within the admin after sales, the browser loads (and also the apache access log doesn't even show a GET-request at this time around), but will get no answer. Only when I request again, it will get clarified.
I used a variety of WSGI-Designs, including Daemon/embedded mode changes, alterations in the quantity of processes and threads etc. I simply don't know where you can search further. Here my current apache configuation:
<VirtualHost myserver.com:80> ServerName myserver.com Alias /media/ /opt/myserver/static_media/admin/ Alias /favicon.ico /opt/myserver/static_media/img/favicon.ico WSGIScriptAlias / /opt/myserver/myproject.wsgi WSGIDaemonProcess myserver.com user=www-data group=www-data processes=2 threads=15 ErrorLog /var/log/apache2/myserver-error.log CustomLog /var/log/apache2/myserver.log common </VirtualHost>
And my wsgi-file:
import os, sys sys.path.append('/usr/local/django') sys.path.append('/opt/myproject') os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler()
Book the Apache error logs. There can be a python error/stacktrace inside.
I additionally think you miss a job from the daemon to some located folder:
<Directory /opt/myserver/> WSGIProcessGroup server.com Order deny,allow Allow from all </Directory>