Create vhost function