Opened 12 years ago
Closed 12 years ago
#371 closed defect (invalid)
Incorrect documentation for proxy_intercept_errors
| Reported by: | zhurs.ya.ru | Owned by: | |
|---|---|---|---|
| Priority: | trivial | Milestone: | |
| Component: | other | Version: | 1.3.x |
| Keywords: | Cc: | ||
| uname -a: | |||
| nginx -V: | nginx/1.2.9 | ||
Description
http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_intercept_errors
Current text:
"Determines whether proxied responses with codes greater than or equal to 300 should be passed to a client or be redirected to nginx for processing using the error_page directive."
Really, it works for codes greater or equal to 400
Change History (2)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
Hi there. Closing this, as the ticket is clearly invalid.
Note:
See TracTickets
for help on using tickets.

The relevant code looks like this:
if (u->headers_in.status_n >= NGX_HTTP_SPECIAL_RESPONSE) { [...] if (ngx_http_upstream_intercept_errors(r, u) == NGX_OK) { return; } }where
NGX_HTTP_SPECIAL_RESPONSEis defined as 300. In 1.2.9, code 300 is not intercepted.