Python on nginx using fcgiwrap - upstream closed prematurely FastCGI stdout while reading response header from upstream Python on nginx using fcgiwrap - upstream closed prematurely FastCGI stdout while reading response header from upstream nginx nginx

Python on nginx using fcgiwrap - upstream closed prematurely FastCGI stdout while reading response header from upstream


Try adding the response code ("HTTP/1.0 200 OK") to the top of the output from your hello.py like this:

#!/usr/bin/pythonprint "HTTP/1.0 200 OK"print "Content-type: text/html\n\n"print ""print "Hello world"