diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2008-08-29 13:43:38 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2008-08-29 13:43:38 +0000 |
| commit | d76eb9a8c8f9353a1fa7d311797ecaaf78748945 (patch) | |
| tree | 5bb6383288c1efd05c00f2d1d63df04226f10225 /src/http/ngx_http.c | |
| parent | e04b4204a858a7b29579d04d824d50d9d9464045 (diff) | |
| download | nginx-d76eb9a8c8f9353a1fa7d311797ecaaf78748945.tar.gz nginx-d76eb9a8c8f9353a1fa7d311797ecaaf78748945.tar.bz2 | |
set listen configuration to default server,
this fixes the case, when default server is not the first one
Diffstat (limited to 'src/http/ngx_http.c')
| -rw-r--r-- | src/http/ngx_http.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c index 4cea28273..492cfa065 100644 --- a/src/http/ngx_http.c +++ b/src/http/ngx_http.c @@ -1158,6 +1158,7 @@ ngx_http_init_server_lists(ngx_conf_t *cf, ngx_array_t *servers, in_addr[a].core_srv_conf = cscfp[s]; in_addr[a].default_server = 1; + in_addr[a].listen_conf = &listen[l].conf; } goto found; |
