Apache2 and mod_wsgi: Truncated or oversized response headers received from daemon process Apache2 and mod_wsgi: Truncated or oversized response headers received from daemon process flask flask

Apache2 and mod_wsgi: Truncated or oversized response headers received from daemon process


I may have a tweak. I had this problem but now it's working somehow.

  • I tried to run mod_wsgi as a daemon. My application didn't work and I had this error message in the logs.
  • however running mod_wsgi as non-daemon worked, for instance

    python manage.py runmodwsgi --reload-on-changes # for Django

    So I once again launched it then killed it.

  • my app is still running :)

(mod_wsgi 4.4.[1-13], apache2, python 2.7, Django 1.7, Debian8 fresh install, with or without virtualenv)