Subrequest without returning to nginx

Ranier Vilela ranier.vf at gmail.com
Tue May 4 14:35:08 UTC 2021


Em ter., 4 de mai. de 2021 às 11:11, Alfred Sawaya <alfred at huji.fr>
escreveu:

> Hello,
>
>
> I am currently converting an Apache module to Nginx. This module uses
> subrequests and needs (for now) to execute the subrequest without
> unwinding the stack (ie without returning to nginx).
>
> I tried to call ngx_http_run_posted_requests by hand, but it does not
> work as the upstream socket needs to get polled some time.
>
>
> So I wonder, is there any way to do this ?
>
You can try: ngx_http_internal_redirect
ngx_http_internal_redirect(r, &uri, NULL);

regards,
Ranier Vilela
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20210504/6eff6999/attachment.htm>


More information about the nginx-devel mailing list