From owner-freebsd-questions@FreeBSD.ORG Sat May 30 21:52:10 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 93111294 for ; Sat, 30 May 2015 21:52:10 +0000 (UTC) (envelope-from talon@lpthe.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 30EDC118D for ; Sat, 30 May 2015 21:52:09 +0000 (UTC) (envelope-from talon@lpthe.jussieu.fr) Received: from parthe.lpthe.jussieu.fr (parthe.lpthe.jussieu.fr [134.157.10.1]) by shiva.jussieu.fr (8.14.4/jtpda-5.4) with ESMTP id t4ULkMD5072698 ; Sat, 30 May 2015 23:46:35 +0200 (CEST) X-Ids: 168 Received: from tycho.lpthe.jussieu.fr (tycho.lpthe.jussieu.fr [134.157.10.2]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by parthe.lpthe.jussieu.fr (Postfix) with ESMTPS id A77BBDF4C2; Sat, 30 May 2015 23:46:21 +0200 (CEST) Received: (from talon@localhost) by tycho.lpthe.jussieu.fr (8.14.4/8.14.4/Submit) id t4ULkLTI000437; Sat, 30 May 2015 23:46:21 +0200 Date: Sat, 30 May 2015 23:46:21 +0200 From: Michel TALON To: "questions@freebsd.org" , Rod Person Subject: Re: nginx and simple python cgi Message-ID: <20150530214621.GA32243@lpthe.jussieu.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-12-10) X-Miltered: at jchkmail2.reseau.jussieu.fr with ID 556A2FAE.003 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 556A2FAE.003 from parthe.lpthe.jussieu.fr/parthe.lpthe.jussieu.fr/134.157.10.1/parthe.lpthe.jussieu.fr/ 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 21:52:10 -0000 This is a simple python script which does wscgi communication with a http server (in my case httpd), you may take it as example. http://www.lpthe.jussieu.fr/~talon/show_index.fcgi The part of interest to you is after def request_handler(environ, start_response) : and especially after try: from flup.server.fcgi import WSGIServer