The media type for "file.pdf" cannot be detected

It can help to define mime types in htaccess. Im afraid i dont know the equivalent in Nginx.

These rules are a good start…