View difference between Paste ID: zZu87fwR and 63u8wZZs
SHOW: | | - or go back to the newest paste.
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"
4+
the location file is based on email address, when user uploading file they have folder using their mail address as a name.
5-
example:
5+
the root path is "/var/fileserver/"
6-
/var/fileserver/tina@gmail.com
6+
7-
/var/fileserver/justin@gmail.com
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?