salvia-1.0.0: Modular web application framework.

Network.Salvia.Handler.VirtualHosting

Synopsis

Documentation

hVirtualHosting :: HttpM Request m => ListDispatcher String m bSource

Dispatcher based on the host part of the hostname request header. Everything not part of the real hostname (like the port number) will be ignored. When the expected hostname starts with a dot (like .mydomain.com) this indicates that all sub-domains of this domain will match as well.

hPortRouter :: HttpM Request m => ListDispatcher Int m bSource

Dispatcher based on the port number of the hostname request header. When no port number is available in the hostname header port 80 will be assumed.