# HG changeset patch # User Igor Sysoev # Date 1220017418 0 # Node ID fb84e3e9584149507ff24b7580a6809b87270498 # Parent 7f27856d000df3ea43af1194853998f7ea95822e 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 --- a/src/http/ngx_http.c +++ b/src/http/ngx_http.c @@ -1158,6 +1158,7 @@ ngx_http_init_server_lists(ngx_conf_t *c in_addr[a].core_srv_conf = cscfp[s]; in_addr[a].default_server = 1; + in_addr[a].listen_conf = &listen[l].conf; } goto found;