Welcome! Log In Create A New Profile

Advanced

X-Accel-Redirect not redirecting to named locaiton

June 30, 2020 09:19PM
I have the below config, calling /v2/test/status calls the http://test.svc.cluster.local:9080/status. But the named location `acreate` is not being called. http://test.svc.cluster.local:9080/status does return `X-Accel-Redirect: @acreate` in response header.

location @acreate {
internal;
return 200 "testing";

}

location ~ /v2/test(.*)$ {
proxy_method GET;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header content-type "application/json";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-NginX-Proxy true;
set $serv http://test.svc.cluster.local:9080$1;
proxy_pass $serv;
}
Subject Author Posted

X-Accel-Redirect not redirecting to named locaiton

latha June 30, 2020 09:19PM

Re: X-Accel-Redirect not redirecting to named locaiton

Francis Daly July 01, 2020 04:06AM

Re: X-Accel-Redirect not redirecting to named locaiton

latha July 07, 2020 08:01PM

Re: X-Accel-Redirect not redirecting to named locaiton

Francis Daly July 19, 2020 03:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 83
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready