Add hostname support for routing