comparison src/http/modules/ngx_http_proxy_module.c @ 632:5b73504dd4ba NGINX_1_1_0

nginx 1.1.0 *) Feature: cache loader run time decrease. *) Feature: "loader_files", "loader_sleep", and "loader_threshold" options of the "proxy/fastcgi/scgi/uwsgi_cache_path" directives. *) Feature: loading time decrease of configuration with large number of HTTPS sites. *) Feature: now nginx supports ECDHE key exchange ciphers. Thanks to Adrian Kotelba. *) Feature: the "lingering_close" directive. Thanks to Maxim Dounin. *) Bugfix: in closing connection for pipelined requests. Thanks to Maxim Dounin. *) Bugfix: nginx did not disable gzipping if client sent "gzip;q=0" in "Accept-Encoding" request header line. *) Bugfix: in timeout in unbuffered proxied mode. Thanks to Maxim Dounin. *) Bugfix: memory leaks when a "proxy_pass" directive contains variables and proxies to an HTTPS backend. Thanks to Maxim Dounin. *) Bugfix: in parameter validaiton of a "proxy_pass" directive with variables. Thanks to Lanshun Zhou. *) Bugfix: SSL did not work on QNX. Thanks to Maxim Dounin. *) Bugfix: SSL modules could not be built by gcc 4.6 without --with-debug option.
author Igor Sysoev <http://sysoev.ru>
date Mon, 01 Aug 2011 00:00:00 +0400
parents bb20316269e4
children 23ef0645ea57
comparison
equal deleted inserted replaced
631:9b978fa3cd33 632:5b73504dd4ba
640 == NULL) 640 == NULL)
641 { 641 {
642 return NGX_ERROR; 642 return NGX_ERROR;
643 } 643 }
644 644
645 if (ngx_strncasecmp(proxy.data, (u_char *) "http://", 7) == 0) { 645 if (proxy.len > 7
646 646 && ngx_strncasecmp(proxy.data, (u_char *) "http://", 7) == 0)
647 {
647 add = 7; 648 add = 7;
648 port = 80; 649 port = 80;
649 650
650 #if (NGX_HTTP_SSL) 651 #if (NGX_HTTP_SSL)
651 652
652 } else if (ngx_strncasecmp(proxy.data, (u_char *) "https://", 8) == 0) { 653 } else if (proxy.len > 8
653 654 && ngx_strncasecmp(proxy.data, (u_char *) "https://", 8) == 0)
655 {
654 add = 8; 656 add = 8;
655 port = 443; 657 port = 443;
656 r->upstream->ssl = 1; 658 r->upstream->ssl = 1;
657 659
658 #endif 660 #endif
1705 conf->upstream.change_buffering = 1; 1707 conf->upstream.change_buffering = 1;
1706 1708
1707 conf->headers_hash_max_size = NGX_CONF_UNSET_UINT; 1709 conf->headers_hash_max_size = NGX_CONF_UNSET_UINT;
1708 conf->headers_hash_bucket_size = NGX_CONF_UNSET_UINT; 1710 conf->headers_hash_bucket_size = NGX_CONF_UNSET_UINT;
1709 1711
1712 ngx_str_set(&conf->upstream.module, "proxy");
1713
1710 return conf; 1714 return conf;
1711 } 1715 }
1712 1716
1713 1717
1714 static char * 1718 static char *