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
web server interface for Ocaml ( like rack, wsgi, ...)?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-09-17 (08:57)
From: Stéphane Glondu <steph@g...>
Subject: Re: [Caml-list] web server interface for Ocaml ( like rack, wsgi, ...)?
Le 17/09/2010 09:59, Paolo Donadeo a écrit :
>> Could you expand on the reasoning a little?  I mean, what is for you
>> the advantage of running Eliom over Ocamlnet as opposed to over the
>> Ocsigen server?
>> From my point of view the problem with Ocsigen is that it requires you
> to install an HTTP server. In the real world the programmer, or even
> the project leader, don't have this freedom of choice, because there
> are system constraints imposed by others. You are often asked to
> provide an application, along with detailed instruction for the
> installation in a standard environment, where one (ore more) HTTP
> servers have some standard connectors (WSGI, FastCGI, AJP, etc...)

Ocsigen can run with most other webservers via a reverse proxy. The 
Ocsigen process itself doesn't even need to have special privileges, and 
can be installed and run by a regular user. If you are allowed to use 
WSGI, FastCGI, AJP, etc., it shouldn't be more difficult to use Ocsigen. 
Process management might not be as handy, so you'll have to manage 
somehow the ocsigen process crashing / being killed, but there are other 
tools (e.g. monit) for that.

I'm not saying that WSGI, FastCGI, AJP, etc. support for Eliom has no 
benefit! But we can live (and we do) without it for now.