This is a dummy question. I have to give public access to PDFs, let's say 8 MB / file. It seems to me that nginx will serve any kind of files, as long as they are static. But someone tells me nginx isn't suited for this.
Can you provide me some documentation to prove me/him wrong ?
There is nothing to prove, nginx is specifically optimized for serving static content.
You were told wrong.
The typical use for nginx is to serve the static files for a web site, while something else (which nginx proxies to) serves the dynamic content. Unless you're generating the PDFs on the fly, nginx should be perfectly fine.
When in doubt, benchmark! Fortunately someone else has already done this:
http://nbonvin.wordpress.com/2011/03/24/serving-small-static-files-which-server-to-use/
Conclusion? Allow me to quote:
And:
The proof is in the numbers. Nginx is second best at requests/second, average for cpu usage, and best for memory usage. So yes, nginx is definitely a good server for statically serving standard size PDFS.