Fix deprecated variable access warning in vhost header template