nginx and simple python cgi

Rod Person rodperson at
Sat May 30 20:03:00 UTC 2015

Does anyone know how to or can point me to a how to on setting up
nginx to use python for cgi?

I have setup to use django and php, but simple python scripts such as
the one below don't work. uwsgi seems to want full blown application,
if not I can't find any guide anywhere that uses it without django or
flask, etc.

#!/usr/bin/env python

print "Content-type: text/html\r\n\r\n";
print "<b>Hi</b><br/>";


He who knows himself to be one way and pretends it is another way is a
thief who robs his own soul.

  The Mahabharata
     Sakuntala 25

More information about the freebsd-questions mailing list