How setup nginx for elgg?

Is Nginx setuped by htaccess or nginx.conf. I see many website create file nginx.conf but add to .htaccess. What's best way? My wesite is where to share image.

If I create nginx.conf, do I put this ?

Sorry, my english is bad.

Performance and Scalability

Performance and Scalability

If you've got a need for speed, this group is for you.