curl: (52) Empty reply from server

May 20, 2015 5.8k views
Nginx WordPress


I'm here to do according to the optimized configuration nginx.conf - https://www.digitalocean.com/community/tutorials/how-to-optimize-nginx-configuration

Then when I try to execute "curl -X PURGE http://www.myname.com/index.php" 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?

Be the first one to answer this question.