Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Christophe TROESTLER <Christophe.Troestler+ocaml@u...>
Subject: Re: [Caml-list] Netcgi_fcgi
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
> 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 it should be
someting like

  FastCgiExternalServer path/to/url -host localhost:1200

Hope it helps,