Advertisement
rollovercable

nginx

Aug 31st, 2014
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. hello guys, can anyone give me some tips/trick to mapping/encrypt static file location/path?
  2. lets say i have file locate that can be access using "http://example.com/static/jameshendrix@gmail.com/profile/profile.jpg"
  3.  
  4. the location file is based on email address, when user uploading file they have folder using their mail address as a name.
  5. the root path is "/var/fileserver/"
  6. so from the example above the real file location is on "/var/fileserver/jameshendrix@gmail.com/profile/profile.jpg"
  7.  
  8. the problems is i want to hiding the email part location (jameshendrix@gmail.com) or hashing it when people accessing it,
  9. so people accessing the file like http://example.com/static/<hash value>/profile/profile_thumb.jpg. or it can be access like
  10. "http://example.com/static/<hash value>/profile_thumb.jpg
  11. how to accomplished that using nginx?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement