Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 May 2015 23:37:57 +0300
From:      Maxim V Filimonov <che@bein.link>
To:        freebsd-questions@freebsd.org
Cc:        Rod Person <rodperson@rodperson.com>, "questions@freebsd.org" <questions@freebsd.org>
Subject:   Re: nginx and simple python cgi
Message-ID:  <4925872.2k2hQimyEc@thinkpad>
In-Reply-To: <20150530160412.480305cd@atomizer>
References:  <20150530160412.480305cd@atomizer>

next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 30 May 2015 16:04:12 Rod Person wrote:
> 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/>";

Have you tried FastCGI? https://nginx.localdomain.pl/wiki/FcgiWrap

-- 
wbr, Maxim Filimonov <che@bein.link>



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