added a check for  and  inside vhost.pp