changeset 2219:fb84e3e95841

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 Fri, 29 Aug 2008 13:43:38 +0000
parents 7f27856d000d
children bf38420c9e25
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
@@ -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;