src/server/conf.c

changeset 6
ce8fecc9847d
parent 5
dbc01588686e
child 12
34aa8001ea53
equal deleted inserted replaced
5:dbc01588686e 6:ce8fecc9847d
54 54
55 void load_server_conf(char *file) { 55 void load_server_conf(char *file) {
56 printf("load_server_conf\n"); 56 printf("load_server_conf\n");
57 57
58 ListenerConfig *conf = malloc(sizeof(ListenerConfig)); 58 ListenerConfig *conf = malloc(sizeof(ListenerConfig));
59 conf->port = 8080; 59 conf->port = 9090;
60 conf->nacceptors = 1; 60 conf->nacceptors = 1;
61 conf->name = "default"; 61 conf->name = "default";
62 62
63 http_listener_new(conf); 63 http_listener_new(conf);
64 64
65 // virtual server 65 // virtual server
66 default_vs = vs_new(); 66 default_vs = vs_new();
67 default_vs->objset = create_test_objset(); 67 // load obj.conf
68 default_vs->objects = load_obj_conf("conf/obj.conf");
68 default_vs->default_obj_name = "default"; 69 default_vs->default_obj_name = "default";
69 70
70 // begin objset test 71 // begin objset test
71 /* 72 /*
72 httpd_objset *objset = default_vs->objset; 73 httpd_objset *objset = default_vs->objset;

mercurial