Skip to content

HanadaLee/ngx_http_rewrite_status_filter_module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ngx_http_rewrite_status_filter_module

Name

ngx_http_rewrite_status_filter_module is a filter module used to rewrite response status code.

Table of Content

Status

This Nginx module is currently considered experimental. Issues and PRs are welcome if you encounter any problems.

Synopsis

server {
    listen 127.0.0.1:8080;
    server_name localhost;

    location / {
        rewrite_status 404 if=$http_rsp_404_status;
        proxy_pass http://foo.com;
    }
}

Installation

To use theses modules, configure your nginx branch with --add-module=/path/to/ngx_http_rewrite_status_filter_module.

Directives

rewrite_status

Syntax: rewrite_status status [if=condition];

Default: -

Context: http, server, location

Rewrite response status code.

Author

Hanada [email protected]

License

This Nginx module is licensed under BSD 2-Clause License.

About

A filter module used to rewrite response status code

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages