comparison src/http/ngx_http_upstream.c @ 224:9909a161eb28 NGINX_0_3_59

nginx 0.3.59 *) Feature: now is possible to do several redirection using the "error_page" directive. *) Bugfix: the "dav_access" directive did not support three parameters. *) Bugfix: the "error_page" directive did not changes the "Content-Type" header line after the "X-Accel-Redirect" was used; bug appeared in 0.3.58.
author Igor Sysoev <http://sysoev.ru>
date Wed, 16 Aug 2006 00:00:00 +0400
parents dd6c66b5b0e2
children 38e7b94d63ac
comparison
equal deleted inserted replaced
223:c3b6f8ef140b 224:9909a161eb28
1091 { 1091 {
1092 ngx_http_upstream_next(r, u, NGX_HTTP_UPSTREAM_FT_HTTP_404); 1092 ngx_http_upstream_next(r, u, NGX_HTTP_UPSTREAM_FT_HTTP_404);
1093 return; 1093 return;
1094 } 1094 }
1095 1095
1096 if (u->conf->redirect_404) { 1096 if (u->conf->intercept_404) {
1097 rc = (r->err_ctx == NULL) ? 404 : 204; 1097 ngx_http_upstream_finalize_request(r, u, NGX_HTTP_NOT_FOUND);
1098 ngx_http_upstream_finalize_request(r, u, rc);
1099 return; 1098 return;
1100 } 1099 }
1101 } 1100 }
1102 1101
1103 1102
1104 if (u->headers_in.status_n >= NGX_HTTP_BAD_REQUEST 1103 if (u->headers_in.status_n >= NGX_HTTP_BAD_REQUEST
1105 && u->conf->intercept_errors 1104 && u->conf->intercept_errors)
1106 && r->err_ctx == NULL)
1107 { 1105 {
1108 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); 1106 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
1109 1107
1110 if (clcf->error_pages) { 1108 if (clcf->error_pages) {
1111 1109