Home | History | Annotate | Download | only in dist

Lines Matching defs:vhost

1889 	   for a known vhost or server alias. If we don't know about this
3397 Search the vhost hierarchy beginning with http for a server alias
3407 struct evhttp *vhost;
3420 TAILQ_FOREACH(vhost, &http->virtualhosts, next_vhost) {
3421 if (evhttp_find_alias(vhost, outhttp, hostname))
3431 match. Then, the vhost hierarchy is traversed again for a matching
3434 If an alias or vhost is matched, 1 is returned, and outhttp, if non-null,
3443 struct evhttp *vhost;
3452 TAILQ_FOREACH(vhost, &http->virtualhosts, next_vhost) {
3453 if (prefix_suffix_match(vhost->vhost_pattern,
3455 http = vhost;
3740 struct evhttp* vhost;
3763 while ((vhost = TAILQ_FIRST(&http->virtualhosts)) != NULL) {
3764 TAILQ_REMOVE(&http->virtualhosts, vhost, next_vhost);
3766 evhttp_free(vhost);
3783 struct evhttp* vhost)
3785 /* a vhost can only be a vhost once and should not have bound sockets */
3786 if (vhost->vhost_pattern != NULL ||
3787 TAILQ_FIRST(&vhost->sockets) != NULL)
3790 vhost->vhost_pattern = mm_strdup(pattern);
3791 if (vhost->vhost_pattern == NULL)
3794 TAILQ_INSERT_TAIL(&http->virtualhosts, vhost, next_vhost);
3800 evhttp_remove_virtual_host(struct evhttp* http, struct evhttp* vhost)
3802 if (vhost->vhost_pattern == NULL)
3805 TAILQ_REMOVE(&http->virtualhosts, vhost, next_vhost);
3807 mm_free(vhost->vhost_pattern);
3808 vhost->vhost_pattern = NULL;