You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like my njs function to manipulate the req body and then send it along to a private location that is not exposed in the conf file as a public location. I tried
Unfortunately it is not possible to make a subrequest to a named location due to limitation of the nginx internal API. But you can make a subrequest to an internal location which is protected from the outside. Please, take a look: http://nginx.org/en/docs/http/ngx_http_core_module.html#internal
Hi
I'd like my njs function to manipulate the req body and then send it along to a private location that is not exposed in the conf file as a public location. I tried
req.subrequest('@myNamedLocation', ...
and
req.subrequest('http://my.private.url', ...
but in both cases nginx looked in the html folder for a file with these names.
Please advise on how I can best achieve this use case.
Thanks,
Matt
The text was updated successfully, but these errors were encountered: