title: Apache/nginx fine grained (per file) permissions?
body: <p>Is it possible to set fine-grained permissions using either Apache or nginx? Given a large number of files and a large number of users, what's a good way to specify that each authenticated user only has access his/her own files?</p>
  
  <pre><code>user_a can access file_a_1, file_a_2
  user_b can access file_b_1
  user_c can access file_c_1, file_c2, file_c3, file_a_2
  </code></pre>
  
  <p>These are static, read-only files (for the most part). Imagine file-system like access control but with http. No web-dav; this is part of a web app; the images will display as part of the user's page in a browser. I want to make sure nobody else can see the image even if they can find the url for it.</p>