[Haskell-cafe] Happstack basic question

Martin Kiefel mk at nopw.de
Thu Mar 11 07:39:24 EST 2010

Hi Dmitry,

On Thu, Mar 11, 2010 at 11:38:44AM +0300, Dmitry V'yal wrote:
> Hello haskellers,
> I want to host a simple happstack application behind a reverse proxy. So 
> ideally would be to bind it to localhost only.
> According to
> http://hackage.haskell.org/packages/archive/happstack-server/0.4.1/doc/html/Happstack-Server-HTTP-Types.html#t%3AConf
> Conf datatyle has only Port field. Does it mean, there is currently no 
> way to prevent binding happstack to all available interfaces?

I think you are looking for simpleHTTPWithSocket [1]. You can use
whatever socket you like.

> Regards,
> Dmitry


[1] http://happstack.com/docs/0.4/happstack-server/Happstack-Server-SimpleHTTP.html#v%3AsimpleHTTPWithSocket

More information about the Haskell-Cafe mailing list