Post action after client closes connection
    Roman Mobczynski 
    lists at ruby-forum.com
       
    Mon May  4 13:21:36 MSD 2009
    
    
  
I think I have found solution :)
ngx_http_request_t *sr;
rc = ngx_http_subrequest(r, &location, NULL, &sr, NULL, 0);
ngx_http_core_loc_conf_t  *clcfsub;
//location configuration for subrequest
clcfsub = ngx_http_get_module_loc_conf(sr, ngx_http_core_module);
clcfsub->post_action = uri of post action;
Earlier I was setting post_action only for main request and now it is 
set also for subrequest, seems to work.
-- 
Posted via http://www.ruby-forum.com/.
    
    
More information about the nginx
mailing list