Advertisement
rollovercable

nginx mapping location problem

Aug 31st, 2014
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  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 root path is "/var/fileserver"
  5. example:
  6. /var/fileserver/tina@gmail.com
  7. /var/fileserver/justin@gmail.com
  8. so from the example above the real file location is on "/var/fileserver/jameshendrix@gmail.com/profile/profile.jpg"
  9. the problems is i want to hiding the email part location (jameshendrix@gmail.com) or hashing it when people accessing it,
  10. so people accessing the file like http://example.com/static/<hash value>/profile/profile_thumb.jpg. or it can be access like
  11. "http://example.com/static/<hash value>/profile_thumb.jpg
  12. how to accomplished that using nginx?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement