Support subdomain configuration

Signed-off-by: Stephen Celis <stephen@stephencelis.com>