How can I configure nginx to pass a PURGE request from localhost to the Varnish backend?
Currently, the script causes this line to appear in the nginx logs:
127.0.0.1 - - [23/Apr/2012:20:12:31 -0500] "PURGE /blog HTTP/1.1" 405 173 "-" "-"
Is there any way to rewrite this purge request to the Varnish backend (127.0.0.1:8080)?