From: Igor Sysoev Date: Fri, 29 Aug 2008 13:43:38 +0000 (+0000) Subject: set listen configuration to default server, X-Git-Tag: release-0.7.14~8 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=d76eb9a8c8f9353a1fa7d311797ecaaf78748945;p=nginx.git set listen configuration to default server, this fixes the case, when default server is not the first one --- 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;