Mercurial > hg > nginx-quic
comparison src/http/ngx_http_special_response.c @ 477:ad1e9ebf93bb release-0.1.13
nginx-0.1.13-RELEASE import
*) 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 <igor@sysoev.ru> |
---|---|
date | Tue, 21 Dec 2004 12:30:30 +0000 |
parents | 42d11f017717 |
children | 31ff3e943e16 |
comparison
equal
deleted
inserted
replaced
476:7e8b84ab09e9 | 477:ad1e9ebf93bb |
---|---|
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 |