# HG changeset patch # User Igor Sysoev # Date 1203079600 0 # Node ID 22e28e77246bf6cd5cef2f56c3487156471fa813 # Parent 68504883062301d4d693fdae494300d29a279f80 named locations in post_action diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -2448,7 +2448,12 @@ ngx_http_post_action(ngx_http_request_t r->read_event_handler = ngx_http_block_reading; - ngx_http_internal_redirect(r, &clcf->post_action, NULL); + if (clcf->post_action.data[0] == '/') { + ngx_http_internal_redirect(r, &clcf->post_action, NULL); + + } else { + ngx_http_named_location(r, &clcf->post_action); + } return NGX_OK; }