src/server/daemon/config.c

changeset 636
40f069ddda37
parent 635
b85d45fd3b01
child 650
3e4f9cdd70b8
equal deleted inserted replaced
635:b85d45fd3b01 636:40f069ddda37
748 vs->acls = acldata; 748 vs->acls = acldata;
749 749
750 CxList *locations = serverconfig_get_node_list(obj, CONFIG_NODE_OBJECT, CX_STR("Location")); 750 CxList *locations = serverconfig_get_node_list(obj, CONFIG_NODE_OBJECT, CX_STR("Location"));
751 CxIterator i = cxListIterator(locations); 751 CxIterator i = cxListIterator(locations);
752 cx_foreach(ConfigNode *, node, i) { 752 cx_foreach(ConfigNode *, node, i) {
753 WSLocation *location = cfg_location_get(cfg->a, node); 753 WSLocation *location = cfg_location_get(cfg, node);
754 if(location) { 754 if(location) {
755 vs_add_location(vs, location); 755 vs_add_location(vs, location);
756 } else { 756 } else {
757 log_ereport(LOG_FAILURE, "VirtualServer %s error: abort", vs->name.ptr); 757 log_ereport(LOG_FAILURE, "VirtualServer %s error: abort", vs->name.ptr);
758 return 1; 758 return 1;

mercurial