if (debug) log_d("D find_vs");
static int find_vs(struct request *r){	struct virtual *v, *d;	if (debug)		log_d("D find_vs");	d = 0;	v = r->cn->s->children;	if (r->host)		while (v) {			if (v->host) {				if (hostmatch(r->host, v->host))					break;			} else if (v->anyhost)				d = v;			v = v->next;		}	else		while (v) {			if (v->host == 0) {				if (v->anyhost)					d = v;				else					break;			}			v = v->next;		}	if (v == 0) {		if (d == 0)			return 1;		v = d;	}	v->nrequests++;	r->vs = v;	if (v->host)		r->servername = v->host;	else		r->servername = r->cn->s->s_name;	return 0;}