happstack-helpers-0.52: Convenience functions for Happstack.

Happstack.Server.Helpers

Synopsis

Documentation

vhost :: (String, Int) -> ServerPartT IO Response -> ServerPartT IO ResponseSource

multiple vhosts to a server, eg | vhosts [(mysite.com,80),(www.mysite.com,80)] mySiteController

vhost doms h = msum . map (d -> site d h) doms similar to apache vhost. given (domain,port) and a main request handler, handle requests if it's the specified domain and port vhost (mysite.com,80) mySiteController