comparison src/http/modules/ngx_http_rewrite_module.c @ 502:89dc5654117c NGINX_0_7_63

nginx 0.7.63 *) Security: now "/../" are disabled in "Destination" request header line. *) Change: minimum supported OpenSSL version is 0.9.7. *) Change: the "ask" parameter of the "ssl_verify_client" directive was changed to the "optional" parameter and now it checks a client certificate if it was offered. Thanks to Brice Figureau. *) Feature: now the "-V" switch shows TLS SNI support. *) Feature: the $ssl_client_verify variable. Thanks to Brice Figureau. *) Feature: the "ssl_crl" directive. Thanks to Brice Figureau. *) Bugfix: the $ssl_client_cert variable usage corrupted memory; the bug had appeared in 0.7.7. Thanks to Sergey Zhuravlev. *) Feature: now the start cache loader runs in a separate process; this should improve large caches handling. *) Feature: now temporary files and permanent storage area may reside at different file systems. *) Bugfix: nginx counted incorrectly disk cache size. *) Change: now directive "gzip_disable msie6" does not disable gzipping for MSIE 6.0 SV1. *) Bugfix: nginx always added "Vary: Accept-Encoding" response header line, if both "gzip_static" and "gzip_vary" were on. *) Feature: the "proxy" parameter of the "geo" directive. *) Feature: the ngx_http_geoip_module. *) Feature: the "limit_rate_after" directive. Thanks to Ivan Debnar. *) Feature: the "limit_req_log_level" and "limit_conn_log_level" directives. *) Bugfix: now "limit_req" directive conforms to the leaky bucket algorithm. Thanks to Maxim Dounin. *) Bugfix: in ngx_http_limit_req_module. Thanks to Maxim Dounin. *) Bugfix: now nginx allows underscores in a request method. *) Bugfix: "proxy_pass_header" and "fastcgi_pass_header" directives did not pass to a client the "X-Accel-Redirect", "X-Accel-Limit-Rate", "X-Accel-Buffering", and "X-Accel-Charset" lines from backend response header. Thanks to Maxim Dounin. *) Bugfix: in handling "Last-Modified" and "Accept-Ranges" backend response header lines; the bug had appeared in 0.7.44. Thanks to Maxim Dounin. *) Feature: the "image_filter_transparency" directive. *) Feature: the "image_filter" directive supports variables for setting size. *) Bugfix: in PNG alpha-channel support in the ngx_http_image_filter_module. *) Bugfix: in transparency support in the ngx_http_image_filter_module. *) Feature: now several "perl_modules" directives may be used. *) Bugfix: ngx_http_perl_module responses did not work in subrequests. *) Bugfix: nginx sent '\0' in a "Location" response header line on MKCOL request. Thanks to Xie Zhenye. *) Bugfix: an "error_page" directive did not redirect a 413 error; the bug had appeared in 0.6.10. *) Bugfix: in memory allocation error handling. Thanks to Maxim Dounin and Kirill A. Korinskiy.
author Igor Sysoev <http://sysoev.ru>
date Mon, 26 Oct 2009 00:00:00 +0300
parents ca8f7f6cab16
children 68c0ae0a4959
comparison
equal deleted inserted replaced
501:dc87c92181c7 502:89dc5654117c
218 { 218 {
219 ngx_http_rewrite_loc_conf_t *conf; 219 ngx_http_rewrite_loc_conf_t *conf;
220 220
221 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_rewrite_loc_conf_t)); 221 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_rewrite_loc_conf_t));
222 if (conf == NULL) { 222 if (conf == NULL) {
223 return NGX_CONF_ERROR; 223 return NULL;
224 } 224 }
225 225
226 conf->stack_size = NGX_CONF_UNSET_UINT; 226 conf->stack_size = NGX_CONF_UNSET_UINT;
227 conf->log = NGX_CONF_UNSET; 227 conf->log = NGX_CONF_UNSET;
228 conf->uninitialized_variable_warn = NGX_CONF_UNSET; 228 conf->uninitialized_variable_warn = NGX_CONF_UNSET;
444 code = ngx_http_script_add_code(lcf->codes, sizeof(uintptr_t), &regex); 444 code = ngx_http_script_add_code(lcf->codes, sizeof(uintptr_t), &regex);
445 if (code == NULL) { 445 if (code == NULL) {
446 return NGX_CONF_ERROR; 446 return NGX_CONF_ERROR;
447 } 447 }
448 448
449 *code = (uintptr_t) NULL; 449 *code = NULL;
450 } 450 }
451 451
452 regex->next = (u_char *) lcf->codes->elts + lcf->codes->nelts 452 regex->next = (u_char *) lcf->codes->elts + lcf->codes->nelts
453 - (u_char *) regex; 453 - (u_char *) regex;
454 454
566 return NGX_CONF_ERROR; 566 return NGX_CONF_ERROR;
567 } 567 }
568 568
569 if_code = ngx_array_push_n(lcf->codes, sizeof(ngx_http_script_if_code_t)); 569 if_code = ngx_array_push_n(lcf->codes, sizeof(ngx_http_script_if_code_t));
570 if (if_code == NULL) { 570 if (if_code == NULL) {
571 return NULL; 571 return NGX_CONF_ERROR;
572 } 572 }
573 573
574 if_code->code = ngx_http_script_if_code; 574 if_code->code = ngx_http_script_if_code;
575 575
576 elts = lcf->codes->elts; 576 elts = lcf->codes->elts;