Hi,
I have a named location where I'm trying to perform a proxy_pass, but of course I can't have a URI in the proxy_pass itself so I'm trying to use rewrite with proxy_pass. However, i've tried so many different things that don't seem to work.
Essentially, I want my proxy_pass URI to be "https://ph-service/authentication/token".
This is what I have so far and it's not working.
location @token {
rewrite ^ /$1/authentication/token break;
proxy_pass https://ph-service;
}
Thanks for the help!
I have a named location where I'm trying to perform a proxy_pass, but of course I can't have a URI in the proxy_pass itself so I'm trying to use rewrite with proxy_pass. However, i've tried so many different things that don't seem to work.
Essentially, I want my proxy_pass URI to be "https://ph-service/authentication/token".
This is what I have so far and it's not working.
location @token {
rewrite ^ /$1/authentication/token break;
proxy_pass https://ph-service;
}
Thanks for the help!