# HG changeset patch # User Igor Sysoev # Date 1227797161 0 # Node ID 7f6f4568574daf0f898b2cfd244d0758fd7c8986 # Parent 640e41cd07426b14d63e6882f4be7265dcc6a27e r2220 merge: 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 @@ -558,6 +558,7 @@ ngx_http_block(ngx_conf_t *cf, ngx_comma in_addr[a].core_srv_conf = cscfp[s]; in_addr[a].default_server = 1; + in_addr[a].listen_conf = &lscf[l].conf; } goto found;