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