Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 May 2015 16:04:12 -0400
From:      Rod Person <rodperson@rodperson.com>
To:        "questions@freebsd.org" <questions@freebsd.org>
Subject:   nginx and simple python cgi
Message-ID:  <20150530160412.480305cd@atomizer>

next in thread | raw e-mail | index | archive | help
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/>";

-- 
Rod

http://www.rodperson.com

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150530160412.480305cd>