diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-10-21 19:18:50 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-10-21 19:18:50 +0000 |
| commit | 9826961ed4d8438848ef6f0191a01574cf4daef4 (patch) | |
| tree | 45f6446effecd8e5b37539f2c253359c0125c55f | |
| parent | 5a95080cb6ea3b8df0dc353553038001c46d3a59 (diff) | |
| download | nginx-9826961ed4d8438848ef6f0191a01574cf4daef4.tar.gz nginx-9826961ed4d8438848ef6f0191a01574cf4daef4.tar.bz2 | |
listen default_server parameter
| -rw-r--r-- | src/http/ngx_http_core_module.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index d97fcfee1..dc3736818 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -3306,7 +3306,9 @@ ngx_http_core_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) for (n = 2; n < cf->args->nelts; n++) { - if (ngx_strcmp(value[n].data, "default") == 0) { + if (ngx_strcmp(value[n].data, "default_server") == 0 + || ngx_strcmp(value[n].data, "default") == 0) + { lsopt.default_server = 1; continue; } |
