http-rewrite-status-filter #
ngx_http_rewrite_status_filter_module is a filter module used to rewrite response status code.
Source: upstream source
Directives
rewrite_status #
syntax: rewrite_status status [if=condition]; · default: - · context: http, server, location
Rewrite response status code.
Example
server {
listen 127.0.0.1:8080;
server_name localhost;
location / {
rewrite_status 404 if=$http_rsp_404_status;
proxy_pass http://foo.com;
}
}