title: nginx hooks ? or any other approach
body: <p>I have couple files on my web project. They are all sending to client with nginx help.</p>
  
  <p>But i want to know (and to show for end users) how many times file was downloaded.</p>
  
  <p>For example  file has url like: example.com/file.ppt</p>
  
  <p>and nginx settings is next:</p>
  
  <pre><code>location ~* \.(ppt|swf)$ {
      root /path/to/static/content;
      expires     30d;
  }
  </code></pre>
  
  <p>so my question: can nginx sent some request by some url ? or something else, when someone tries to download certain file ?</p>