generate vhost dynamically from template