This is like the Holy Grail. See my similar request here http://forum.nginx.org/read.php?2,117833.
However, the answer I got was on the cryptic side with the only thing I could make out being it is not a good idea with proxy which I use as at yet so I gave up.