Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
From: Michael Ekstrand <michael@e...>
Subject: Re: [Caml-list] web server interface for Ocaml ( like rack, wsgi, ...)?
On Thu, 2010-09-16 at 15:04 -0700, Dario Teixeira wrote:
> 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?

Running Eliom over OCamlNet lets it integrate a bit more closely with a
third-party web server via FastCGI.  Standard functions such as absolute
URL construction and SSL checking that depend on the host, port, and
connection type have a knack for breaking when run behind a reverse
proxy.  So, if you're trying to integrate an Eliom web service into a
larger site running Apache/nginx/lighttpd/whatever, FastCGI can be a
huge benefit.

OTOH, if Ocsigen had a FastCGI extension, that could alleviate the need
for another web server in some cases.

- Michael

-- 
Web/blog: http://elehack.net/michael
Jabber/Google Talk: this e-mail address
Twitter: http://twitter.com/elehack
mouse, n: a device for pointing at the xterm in which you want to type