diff -r 545010bc5e71 -r 22eca559aded src/server/daemon/vserver.h --- a/src/server/daemon/vserver.h Sun Nov 20 12:43:44 2022 +0100 +++ b/src/server/daemon/vserver.h Sat Nov 26 17:07:08 2022 +0100 @@ -51,17 +51,20 @@ }; struct VirtualServer { + pool_handle_t *pool; + cxmutstr name; cxmutstr host; + CxMap hosts; // TODO: list of listeners, check listener of vs cxmutstr objectfile; - HTTPObjectConfig *objects; + HTTPObjectConfig *objects; cxmutstr document_root; - ACLData *acls; - AccessLog *log; + ACLData *acls; + AccessLog *log; VSLocation *locations_begin; VSLocation *locations_end; @@ -70,7 +73,9 @@ uint32_t ref; // reference counter }; -VirtualServer* vs_new(); +VirtualServer* vs_new(pool_handle_t *pool); + +int vs_add_host(VirtualServer *vs, cxstring host); #ifdef __cplusplus