From aab8c38b768597274104bc5ecdf267de4ff3c7c9 Mon Sep 17 00:00:00 2001 From: Christopher Davis Date: Fri, 5 Nov 2010 11:17:07 -0700 Subject: Add evhttp server alias interface, correct flagging of proxy requests. evhttp needs to be mindful of all hostnames and addresses that clients use to contact the main server and vhosts to know the difference between proxy requests and non-proxy requests. --- http-internal.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'http-internal.h') diff --git a/http-internal.h b/http-internal.h index e32511e3..7a2446ff 100644 --- a/http-internal.h +++ b/http-internal.h @@ -126,6 +126,11 @@ struct evhttp_bound_socket { struct evconnlistener *listener; }; +struct evhttp_server_alias { + TAILQ_ENTRY(evhttp_server_alias) next; + char *alias; +}; + struct evhttp { /* Next vhost, if this is a vhost. */ TAILQ_ENTRY(evhttp) next_vhost; @@ -140,6 +145,8 @@ struct evhttp { TAILQ_HEAD(vhostsq, evhttp) virtualhosts; + TAILQ_HEAD(aliasq, evhttp_server_alias) aliases; + /* NULL if this server is not a vhost */ char *vhost_pattern; -- cgit v1.2.1