=encoding utf-8 =head1 NAME ngx_http_internal_redirect_module - Module ngx_http_internal_redirect_module =head1 The C module (1.23.4) allows making an internal redirect. In contrast to L, the redirection is made after checking L and L processing limits, and L limits. B This module is available as part of our commercial subscription. =head1 Example Configuration limit_req_zone $jwt_claim_sub zone=jwt_sub:10m rate=1r/s; server { location / { auth_jwt "realm"; auth_jwt_key_file key.jwk; internal_redirect @rate_limited; } location @rate_limited { internal; limit_req zone=jwt_sub burst=10; proxy_pass http://backend; } } The example implements L L. Implementation without internal_redirect is vulnerable to DoS attacks by unsigned JWTs, as normally the L check is performed L L check. Using internal_redirect allows reordering these checks. =head1 Directives =head2 internal_redirect B internal_redirect I>> B I B I Sets the URI for internal redirection of the request. It is also possible to use a L instead of the URI. The I> value can contain variables. If the I> value is empty, then the redirect will not be made.