diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2008-11-27 14:46:01 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2008-11-27 14:46:01 +0000 |
| commit | ad22b3d1f0a8beb582b383968d1f1af344478d94 (patch) | |
| tree | 5e621149ca775e7e9af3b3fd18a97fa2944c46af | |
| parent | 9ad0c07bd947fcf47483f21147a0d511d4e2fe38 (diff) | |
| download | nginx-ad22b3d1f0a8beb582b383968d1f1af344478d94.tar.gz nginx-ad22b3d1f0a8beb582b383968d1f1af344478d94.tar.bz2 | |
r2220 merge:
set listen configuration to default server,
this fixes the case, when default server is not the first one
| -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 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; |
