Lines Matching refs:vhost
1885 for a known vhost or server alias. If we don't know about this
3393 Search the vhost hierarchy beginning with http for a server alias
3403 struct evhttp *vhost;
3416 TAILQ_FOREACH(vhost, &http->virtualhosts, next_vhost) {
3417 if (evhttp_find_alias(vhost, outhttp, hostname))
3427 match. Then, the vhost hierarchy is traversed again for a matching
3430 If an alias or vhost is matched, 1 is returned, and outhttp, if non-null,
3439 struct evhttp *vhost;
3448 TAILQ_FOREACH(vhost, &http->virtualhosts, next_vhost) {
3449 if (prefix_suffix_match(vhost->vhost_pattern,
3451 http = vhost;
3736 struct evhttp* vhost;
3759 while ((vhost = TAILQ_FIRST(&http->virtualhosts)) != NULL) {
3760 TAILQ_REMOVE(&http->virtualhosts, vhost, next_vhost);
3762 evhttp_free(vhost);
3779 struct evhttp* vhost)
3781 /* a vhost can only be a vhost once and should not have bound sockets */
3782 if (vhost->vhost_pattern != NULL ||
3783 TAILQ_FIRST(&vhost->sockets) != NULL)
3786 vhost->vhost_pattern = mm_strdup(pattern);
3787 if (vhost->vhost_pattern == NULL)
3790 TAILQ_INSERT_TAIL(&http->virtualhosts, vhost, next_vhost);
3796 evhttp_remove_virtual_host(struct evhttp* http, struct evhttp* vhost)
3798 if (vhost->vhost_pattern == NULL)
3801 TAILQ_REMOVE(&http->virtualhosts, vhost, next_vhost);
3803 mm_free(vhost->vhost_pattern);
3804 vhost->vhost_pattern = NULL;