Adds support for connecting to vhost