diff src/http/ngx_http.c @ 2354:7f6f4568574d stable-0.6

r2220 merge: set listen configuration to default server, this fixes the case, when default server is not the first one
author Igor Sysoev <igor@sysoev.ru>
date Thu, 27 Nov 2008 14:46:01 +0000
parents cb8c0c8e0c27
children e3baaf7a9bde
line wrap: on
line diff
--- 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;