From 9826961ed4d8438848ef6f0191a01574cf4daef4 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 21 Oct 2009 19:18:50 +0000 Subject: listen default_server parameter --- src/http/ngx_http_core_module.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit