From d76eb9a8c8f9353a1fa7d311797ecaaf78748945 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 29 Aug 2008 13:43:38 +0000 Subject: set listen configuration to default server, this fixes the case, when default server is not the first one --- src/http/ngx_http.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c index 4cea28273..492cfa065 100644 --- a/src/http/ngx_http.c +++ b/src/http/ngx_http.c @@ -1158,6 +1158,7 @@ ngx_http_init_server_lists(ngx_conf_t *cf, ngx_array_t *servers, in_addr[a].core_srv_conf = cscfp[s]; in_addr[a].default_server = 1; + in_addr[a].listen_conf = &listen[l].conf; } goto found; -- cgit