Say you host a website where you have workshops in PDF and would like to get statistics on how many people download them, but due to the setup of your CMS (in my case Drupal) and links being already on the website it is almost impossible. Luckily, those of you who use Nginx as their web server can configure it to log only certain file types being downloaded.
Here is how