Forum: NGINX Sub-requests to an upstream server

2974d09ac2541e892966b762aad84943?d=identicon&s=25 jreich (Guest)
on 2013-08-20 17:43
(Received via mailing list)

I am writing an nginx plugin and I am trying to send sub-requests to an
upstream server.
I am aware of the ngx_http_subrequest function but I didn't succeed to
it in my case and I am not sure it is what I need.

In my use case, I have a structure in shared memory. This structure must
leave as long as some conditions are fulfilled based on several
sub-requests to an upstream server. My first problem is that
ngx_http_subrequest must have a server request to work. I would prefer
send a client request based on an internal event (in my case a timer
If this is not possible, I can use a server request to do that but in
case I don't want to add sub-requests responses content to the response
body. Is this possible ? Do you have any advice ?


Posted at Nginx Forum:,242054,242054#msg-242054
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.