curl: (52) Empty reply from server

May 20, 2015 14k views
Nginx WordPress


I'm here to do according to the optimized configuration nginx.conf -

Then when I try to execute "curl -X PURGE" I got this error message -curl: (52) Empty reply from server

This is what's wrong? How can I fix this error?

  • Why are you sending a PURGE request?

    This request is meant to clear the cache and is commonly used with Varnish and Nginx if it was compiled with the ngx_cache_purge module.

  • Yes, I want to manually clear the cache.

  • The article you've mentioned doesn't say anything about purging the cache. What are you looking to purge?

1 Answer

The ngxcachepurge module is not included in the pre-compiled nginx included in most distributions as far as I know.

Have another answer? Share your knowledge.