ensure vhost header is set correctly