comparison src/http/ngx_http_special_response.c @ 26:45fe5b98a9de NGINX_0_1_13

nginx 0.1.13 *) Feature: the server_names_hash and server_names_hash_threshold directives. *) Bugfix: the *.domain.tld names in the "server_name" directive did not work. *) Bugfix: the %request_length log parameter logged the incorrect length.
author Igor Sysoev <http://sysoev.ru>
date Tue, 21 Dec 2004 00:00:00 +0300
parents f0b350454894
children a39d1b793287
comparison
equal deleted inserted replaced
25:21488c53e135 26:45fe5b98a9de
230 } 230 }
231 231
232 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); 232 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
233 233
234 if (r->err_ctx == NULL && clcf->error_pages) { 234 if (r->err_ctx == NULL && clcf->error_pages) {
235
235 err_page = clcf->error_pages->elts; 236 err_page = clcf->error_pages->elts;
237
236 for (i = 0; i < clcf->error_pages->nelts; i++) { 238 for (i = 0; i < clcf->error_pages->nelts; i++) {
239
237 if (err_page[i].status == error) { 240 if (err_page[i].status == error) {
241
238 if (err_page[i].overwrite) { 242 if (err_page[i].overwrite) {
239 r->err_status = err_page[i].overwrite; 243 r->err_status = err_page[i].overwrite;
240 } else { 244 } else {
241 r->err_status = error; 245 r->err_status = error;
242 } 246 }
247
243 r->err_ctx = r->ctx; 248 r->err_ctx = r->ctx;
249
244 return ngx_http_internal_redirect(r, &err_page[i].uri, NULL); 250 return ngx_http_internal_redirect(r, &err_page[i].uri, NULL);
245 } 251 }
246 } 252 }
247 } 253 }
248 254