Skip to content

Replace only on specific status response #13

Description

@theMiddleBlue

Hi,

is possible to replace a string only when proxy_pass return a 404 stutus? I mean something like

proxy_pass http://foo.bar/nonexistent/

if ($status = "404") {
    replace_filter 'Hello' 'Ciao';
}

thank you in advance,
best regards.

-theMiddle

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions