Home | History | Annotate | Download | only in libevent

Lines Matching defs:vhost

1887 	   for a known vhost or server alias. If we don't know about this
3395 Search the vhost hierarchy beginning with http for a server alias
3405 struct evhttp *vhost;
3418 TAILQ_FOREACH(vhost, &http->virtualhosts, next_vhost) {
3419 if (evhttp_find_alias(vhost, outhttp, hostname))
3429 match. Then, the vhost hierarchy is traversed again for a matching
3432 If an alias or vhost is matched, 1 is returned, and outhttp, if non-null,
3441 struct evhttp *vhost;
3450 TAILQ_FOREACH(vhost, &http->virtualhosts, next_vhost) {
3451 if (prefix_suffix_match(vhost->vhost_pattern,
3453 http = vhost;
3738 struct evhttp* vhost;
3761 while ((vhost = TAILQ_FIRST(&http->virtualhosts)) != NULL) {
3762 TAILQ_REMOVE(&http->virtualhosts, vhost, next_vhost);
3764 evhttp_free(vhost);
3781 struct evhttp* vhost)
3783 /* a vhost can only be a vhost once and should not have bound sockets */
3784 if (vhost->vhost_pattern != NULL ||
3785 TAILQ_FIRST(&vhost->sockets) != NULL)
3788 vhost->vhost_pattern = mm_strdup(pattern);
3789 if (vhost->vhost_pattern == NULL)
3792 TAILQ_INSERT_TAIL(&http->virtualhosts, vhost, next_vhost);
3798 evhttp_remove_virtual_host(struct evhttp* http, struct evhttp* vhost)
3800 if (vhost->vhost_pattern == NULL)
3803 TAILQ_REMOVE(&http->virtualhosts, vhost, next_vhost);
3805 mm_free(vhost->vhost_pattern);
3806 vhost->vhost_pattern = NULL;