Problem with django's wsgi
Trying to run on production.
wsgi:
import sys
import os
import os.path
sys.path.append(os.path.dirname(__file__))
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
In apache logs all fine. But in browser:
This we开发者_Go百科bpage is not available Error 324 (net::ERR_EMPTY_RESPONSE): Unknown error.
Apache/2.2.3 python 2.6.6 mod_wsgi 3.3 modwsgi works on test app.
Before running modwsgi on your production code, test the "Hello World" program https://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide. If it is running fine, there is an issue with your apache config. Else, the issue lies with modwsgi or wsgi config file.
精彩评论