comparison src/http/ngx_http.c @ 3224:8e76e636ae3b

allow to set listen options in any server
author Igor Sysoev <igor@sysoev.ru>
date Wed, 21 Oct 2009 19:16:38 +0000
parents bfcc1a6dd184
children 4872f86df719
comparison
equal deleted inserted replaced
3223:bfcc1a6dd184 3224:8e76e636ae3b
1207 1207
1208 if (ngx_http_add_server(cf, cscf, &addr[i]) != NGX_OK) { 1208 if (ngx_http_add_server(cf, cscf, &addr[i]) != NGX_OK) {
1209 return NGX_ERROR; 1209 return NGX_ERROR;
1210 } 1210 }
1211 1211
1212 if (lsopt->set && addr[i].opt.set) {
1213 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
1214 "a duplicate listen options for %s", addr[i].opt.addr);
1215 return NGX_ERROR;
1216 }
1217
1212 /* check the duplicate "default" server for this address:port */ 1218 /* check the duplicate "default" server for this address:port */
1213 1219
1214 if (lsopt->default_server) { 1220 if (lsopt->default_server) {
1215 1221
1216 if (addr[i].opt.default_server) { 1222 if (addr[i].opt.default_server) {