From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=AWL,SPF_SOFTFAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 94DB5BC37 for ; Fri, 17 Jul 2009 15:12:10 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsQCAAEWYErBvsFKl2dsb2JhbACZRgEBAQEBCBUHtkSEDQU X-IronPort-AV: E=Sophos;i="4.42,417,1243807200"; d="scan'208";a="33174500" Received: from dnsp.umh.ac.be (HELO hermes1.umh.ac.be) ([193.190.193.74]) by mail1-smtp-roc.national.inria.fr with ESMTP; 17 Jul 2009 15:12:09 +0200 Received: from poincare.swapping.umh.ac.be (poincare.swapping.umh.ac.be [10.102.100.62]) by hermes1.umh.ac.be (8.14.2/8.13.6) with ESMTP id n6HD8SsO536818; Fri, 17 Jul 2009 15:08:29 +0200 Received: from localhost ([127.0.0.1] ident=trch) by poincare.swapping.umh.ac.be with esmtp (Exim 4.69) (envelope-from ) id 1MRnEO-0002kH-9B; Fri, 17 Jul 2009 15:12:08 +0200 Date: Fri, 17 Jul 2009 15:12:08 +0200 (CEST) Message-Id: <20090717.151208.622931768851530579.Christophe.Troestler+ocaml@umons.ac.be> To: anders@bladre.dk Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Netcgi_fcgi From: Christophe TROESTLER In-Reply-To: <20090716150854.GA16324@debian> References: <20090716112755.GA5482@debian> <20090716.162741.668523372145744396.Christophe.Troestler+ocaml@umons.ac.be> <20090716150854.GA16324@debian> X-Face: #2fb%mPx>rRL@4ff~TVgZ"<[:,oL"`TUEGK/[8/qb58~C>jR(x4A+v/n)7BgpEtIph_neoLKJBq0JBY9:}8v|j Organization: University of Mons X-Mailer: Mew version 6.2.51 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.64 on 193.190.193.76 X-Spam: no; 0.00; netcgi:01 christophe:01 troestler:01 christophe:01 troestler:01 ocaml:01 0200,:01 2009:98 wrote:01 caml-list:01 anders:02 binary:02 shell:04 correctly:04 jul:05 On Thu, 16 Jul 2009 17:08:54 +0200, Anders Thøgersen wrote: > > I believe I have done this part correctly, though. Here's a sample > session when starting the program from the commandline as you suggest: > > $ ./counter.fcgi > ./counter.fcgi (FCGI) listening on port 1200. > > And in another shell: > > $ lynx 127.0.0.1:1200 > > This waits indefinately. A timeout is also what is reported by > mod_fastcgi. You are supposed to talk the FCGI (binary) protocol on port 1200. Trying to access it with a browser (HTTP protocol) will do nothing interesting. You have to configure your web server so it contact localhost:1200 when you request the URL you want. According to http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html it should be someting like FastCgiExternalServer path/to/url -host localhost:1200 Hope it helps, C.