From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 4B428BC58 for ; Fri, 17 Sep 2010 00:27:09 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAFc2kkyty1O7/2dsb2JhbACDG554cbRLkjOBIoMrdASES4hiFg X-IronPort-AV: E=Sophos;i="4.56,378,1280700000"; d="scan'208";a="59407904" Received: from elehack.net ([173.203.83.187]) by mail2-smtp-roc.national.inria.fr with ESMTP; 17 Sep 2010 00:27:08 +0200 Received: from [192.168.42.102] (unknown [68.168.162.166]) by elehack.net (Postfix) with ESMTPSA id 3671AC89AB for ; Thu, 16 Sep 2010 17:28:39 -0500 (CDT) Subject: Re: [Caml-list] web server interface for Ocaml ( like rack, wsgi, ...)? From: Michael Ekstrand To: OCaml mailing list In-Reply-To: <21686.68875.qm@web111507.mail.gq1.yahoo.com> References: <21686.68875.qm@web111507.mail.gq1.yahoo.com> Content-Type: text/plain; charset="UTF-8" Date: Thu, 16 Sep 2010 17:27:03 -0500 Message-ID: <1284676023.9376.31.camel@knine> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; ocaml:01 ocamlnet:01 ocamlnet:01 blog:98 wrote:01 caml-list:01 functions:01 otoh:02 checking:02 thu:05 extension:06 interface:06 pointing:06 reasoning:07 depend:07 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