Lines Matching refs:vhost
1744 for a known vhost or server alias. If we don't know about this
3189 Search the vhost hierarchy beginning with http for a server alias
3199 struct evhttp *vhost;
3212 TAILQ_FOREACH(vhost, &http->virtualhosts, next_vhost) {
3213 if (evhttp_find_alias(vhost, outhttp, hostname))
3223 match. Then, the vhost hierarchy is traversed again for a matching
3226 If an alias or vhost is matched, 1 is returned, and outhttp, if non-null,
3235 struct evhttp *vhost;
3244 TAILQ_FOREACH(vhost, &http->virtualhosts, next_vhost) {
3245 if (prefix_suffix_match(vhost->vhost_pattern,
3247 http = vhost;
3527 struct evhttp* vhost;
3550 while ((vhost = TAILQ_FIRST(&http->virtualhosts)) != NULL) {
3551 TAILQ_REMOVE(&http->virtualhosts, vhost, next_vhost);
3553 evhttp_free(vhost);
3570 struct evhttp* vhost)
3572 /* a vhost can only be a vhost once and should not have bound sockets */
3573 if (vhost->vhost_pattern != NULL ||
3574 TAILQ_FIRST(&vhost->sockets) != NULL)
3577 vhost->vhost_pattern = mm_strdup(pattern);
3578 if (vhost->vhost_pattern == NULL)
3581 TAILQ_INSERT_TAIL(&http->virtualhosts, vhost, next_vhost);
3587 evhttp_remove_virtual_host(struct evhttp* http, struct evhttp* vhost)
3589 if (vhost->vhost_pattern == NULL)
3592 TAILQ_REMOVE(&http->virtualhosts, vhost, next_vhost);
3594 mm_free(vhost->vhost_pattern);
3595 vhost->vhost_pattern = NULL;