nginx and simple python cgi
Maxim V Filimonov
che at bein.link
Sat May 30 20:38:03 UTC 2015
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 at bein.link>
More information about the freebsd-questions
mailing list