changeset 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 640e41cd0742
children e47fbf6620a0
files src/http/ngx_http.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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;