diff src/http/ngx_http_core_module.c @ 3225:f649453396f5

listen default_server parameter
author Igor Sysoev <igor@sysoev.ru>
date Wed, 21 Oct 2009 19:18:50 +0000
parents 8e76e636ae3b
children e9c0fae6be1e
line wrap: on
line diff
--- 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
 
     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;
         }