title: Cannot issue PURGE request to Varnish cache
body: <p>I am using Varnish 3 in front of nginx running multiple WordPress sites.  I am  using a default.vcl recommended and used by many large WordPress sites.  </p>
  
  <p>default.vcl: <a href="http://pastebin.com/KaSdvuRS" rel="nofollow">http://pastebin.com/KaSdvuRS</a></p>
  
  <p>I am using W3 Total Cache which has an option to automatically purge when clearing the cache.  I also tested installing Varnish HTTP Purge plugin to purge posts/pages when editing them.  Neither seemed to work so I tested interactive session over ssh w/ curl.</p>
  
  <p>I am logged into SSH on the varnish/nginx box, and I type the following command to test the varnish purge:</p>
  
  <p>curl -X PURGE <a href="http://www.example.com" rel="nofollow">http://www.example.com</a></p>
  
  <p>The result is:</p>
  
  <pre><code>&lt;head&gt;
      &lt;title&gt;405 Not allowed.&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;h1&gt;Error 405 Not allowed.&lt;/h1&gt;
      &lt;p&gt;Not allowed.&lt;/p&gt;
      &lt;h3&gt;Guru Meditation:&lt;/h3&gt;
      &lt;p&gt;XID: 265824636&lt;/p&gt;
      &lt;hr&gt;
      &lt;p&gt;Varnish cache server&lt;/p&gt;
    &lt;/body&gt;
  </code></pre>
  
  <p>Any ideas what I am missing?   This vcl file is very similar to what is recommended by Varnish-Cache.org for WordPress and is the purge configuration I see recommended everywhere. </p>