<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em ter., 4 de mai. de 2021 às 11:11, Alfred Sawaya <<a href="mailto:alfred@huji.fr">alfred@huji.fr</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
<br>
I am currently converting an Apache module to Nginx. This module uses<br>
subrequests and needs (for now) to execute the subrequest without<br>
unwinding the stack (ie without returning to nginx).<br>
<br>
I tried to call ngx_http_run_posted_requests by hand, but it does not<br>
work as the upstream socket needs to get polled some time.<br>
<br>
<br>
So I wonder, is there any way to do this ?<br></blockquote><div>You can try:
ngx_http_internal_redirect
</div><div> ngx_http_internal_redirect(r, &uri, NULL);</div><div><br></div><div>regards,</div><div>Ranier Vilela</div></div></div>