deprecated: 0.5.0 -- Please use the max_fails parameter of server directive from the upstream module.
In module ngx_http_proxy_module there are some built-in variables, which can be used for the creation of headers with the help of the proxy_set_header directive: