I get weird errors when trying to deploy Flask application (v0.8). I use apache mod_wsgi, as suggested in the docs (almost to the letter). Which is strange in some requests (just access to / through the browser), the application loads fine, but very often I get resource loading errors (I can’t get some css or images), and the error log shows something like Premature end of script headers: myapp.wsgi . Sometimes apache crashes with an internal server error . I am trying to pursue a problem, but I can not understand what is the reason. My wsgi file looks simple:
from myapp import app as application
Any clues to start looking for?
sa125 source share