From owner-freebsd-questions@FreeBSD.ORG Sat May 30 20:03:00 2015 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7FFBF9ED for ; Sat, 30 May 2015 20:03:00 +0000 (UTC) (envelope-from rodperson@rodperson.com) Received: from mail1.g16.pair.com (unknown [IPv6:2607:f440::4227:4116]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 617921958 for ; Sat, 30 May 2015 20:03:00 +0000 (UTC) (envelope-from rodperson@rodperson.com) Received: from atomizer (c-71-60-227-57.hsd1.pa.comcast.net [71.60.227.57]) by mail1.g16.pair.com (Postfix) with ESMTPSA id B2FA55CB7 for ; Sat, 30 May 2015 16:02:51 -0400 (EDT) Date: Sat, 30 May 2015 16:04:12 -0400 From: Rod Person To: "questions@freebsd.org" Subject: nginx and simple python cgi Message-ID: <20150530160412.480305cd@atomizer> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.27; amd64-portbld-freebsd10.1) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 May 2015 20:03:00 -0000 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 "Hi
"; -- 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