Use port-based method if VHOST is not defined