diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-05-24 15:43:48 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-05-24 15:43:48 +0000 |
commit | 5cdb2ce66e4eda3eb79e032639fd7fc1d815b8db (patch) | |
tree | 2d8e96a93cb2f2a259a1d0837e58c9baf6845999 /src/http/ngx_http.c | |
parent | 7e2c4eef9c2439a7c743a303305ecba616b7b376 (diff) | |
download | nginx-5cdb2ce66e4eda3eb79e032639fd7fc1d815b8db.tar.gz nginx-5cdb2ce66e4eda3eb79e032639fd7fc1d815b8db.zip |
*) remove optimize_host_names
*) deprecate optimize_server_names: it is not needed since
server_name_in_redirect introduction
Diffstat (limited to 'src/http/ngx_http.c')
-rw-r--r-- | src/http/ngx_http.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c index 4e5500fb4..a1c4c9892 100644 --- a/src/http/ngx_http.c +++ b/src/http/ngx_http.c @@ -1314,9 +1314,8 @@ ngx_http_optimize_servers(ngx_conf_t *cf, ngx_http_core_main_conf_t *cmcf, sizeof(ngx_http_conf_in_addr_t), ngx_http_cmp_conf_in_addrs); /* - * check whether all name-based servers have the same configuraiton - * as the default server, - * or some servers disable optimizing the server names + * check whether all name-based servers have + * the same configuraiton as the default server */ in_addr = in_port[p].addrs.elts; @@ -1325,18 +1324,15 @@ ngx_http_optimize_servers(ngx_conf_t *cf, ngx_http_core_main_conf_t *cmcf, name = in_addr[a].names.elts; for (s = 0; s < in_addr[a].names.nelts; s++) { - if (in_addr[a].core_srv_conf != name[s].core_srv_conf - || name[s].core_srv_conf->optimize_server_names == 0) - { + if (in_addr[a].core_srv_conf != name[s].core_srv_conf) { goto virtual_names; } } /* * if all name-based servers have the same configuration - * as the default server, - * and no servers disable optimizing the server names - * then we do not need to check them at run-time at all + * as the default server, then we do not need to check + * them at run-time at all */ in_addr[a].names.nelts = 0; |