From ad22b3d1f0a8beb582b383968d1f1af344478d94 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 27 Nov 2008 14:46:01 +0000 Subject: r2220 merge: 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 3ef1dcbc8..deb3636a4 100644 --- a/src/http/ngx_http.c +++ b/src/http/ngx_http.c @@ -558,6 +558,7 @@ ngx_http_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) in_addr[a].core_srv_conf = cscfp[s]; in_addr[a].default_server = 1; + in_addr[a].listen_conf = &lscf[l].conf; } goto found; -- cgit