Getting the client request domain from Lambda@Edge function

I’m trying do something like below for HTTP 301 redirect, so that web users will redirect to different news pages. if ((request.uri == “/news”) || (request.uri == “/news/”) && (request….

Nginx is trying open file instead of redirect to proxy

Hi I am using Nginx together with njs and have such location in my config Inside of njs file I am making POST request to API In this request I am getting body response as formdata converting it to JSON and making POST request to 3rd party with following error. *63 open() “/usr/share/nginx/html//tc/api/endpoint/book” failed (2: No such file or directory) while sending to client, client:, server: _, request: “POST /checkout/payment?key=val HTTP/1.1”, subrequest: “/tc/api/endpoint/book”, upstream: “”, host: “” This request should be proxied to 3rd party but looks like it trying to open file but not making redirect. This issue