I have the usual
proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=drupal:16m;
proxy_cache_key "$scheme$host$request_uri";
to establish proxy caching. How should I configure nginx to allow deleting a specific item from the cache via an HTTP request?
If you are trying to do selective page purging on Drupal then I would recommend you to read this article since it is long a bit.
To summarize the main steps here:
Alter the server location that handles our Drupal requests with the following code:
Create a new server listening on a random port on the localhost interface.
"http://127.0.0.1:8888"
.and your are done!!
The source of the article: nginx caching with selective page purging