I've got a location block with an auth_request
like this
location /somepath {
auth_request /authorize;
auth_request_set $header_variable $upstream_http_custom_header;
proxy_path http://backendaddress;
}
What I want to do is, if the $header_variable
doesn't match a particular regex I want to return a 403 code.
if
isn't going to work because it runs too early. Is there anything else that would let me do this?