[fix] avoid warning if no virtual host