You misunderstand his question. He&#39;s trying to setup happstack behind a reverse proxy running on the same system, so he needs to be able to bind it only to the loopback interface (127.0.0.1), as opposed to all the interfaces on the system (thereby making it inaccessible from the network unless accessed through the proxy). I don&#39;t know enough about happstack to answer his question, but I can see from the documentation you provided that there doesn&#39;t seem to be any way to specify address to bind to as Dmitry stated in his original e-mail.<br>
<br clear="all">-R. Kyle Murphy<br>--<br>Curiosity was framed, Ignorance killed the cat.<br>
<br><br><div class="gmail_quote">On Thu, Mar 11, 2010 at 07:39, Martin Kiefel <span dir="ltr">&lt;<a href="mailto:mk@nopw.de">mk@nopw.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Dmitry,<br>
<div class="im"><br>
On Thu, Mar 11, 2010 at 11:38:44AM +0300, Dmitry V&#39;yal wrote:<br>
&gt; Hello haskellers,<br>
&gt;<br>
&gt; I want to host a simple happstack application behind a reverse proxy. So<br>
&gt; ideally would be to bind it to localhost only.<br>
&gt;<br>
&gt; According to<br>
&gt; <a href="http://hackage.haskell.org/packages/archive/happstack-server/0.4.1/doc/html/Happstack-Server-HTTP-Types.html#t%3AConf" target="_blank">http://hackage.haskell.org/packages/archive/happstack-server/0.4.1/doc/html/Happstack-Server-HTTP-Types.html#t%3AConf</a><br>

&gt; Conf datatyle has only Port field. Does it mean, there is currently no<br>
&gt; way to prevent binding happstack to all available interfaces?<br>
<br>
</div>I think you are looking for simpleHTTPWithSocket [1]. You can use<br>
whatever socket you like.<br>
<br>
&gt;<br>
&gt; Regards,<br>
&gt; Dmitry<br>
<br>
Cheers,<br>
Martin<br>
<br>
[1] <a href="http://happstack.com/docs/0.4/happstack-server/Happstack-Server-SimpleHTTP.html#v%3AsimpleHTTPWithSocket" target="_blank">http://happstack.com/docs/0.4/happstack-server/Happstack-Server-SimpleHTTP.html#v%3AsimpleHTTPWithSocket</a><br>

<div><div></div><div class="h5">_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br>