Knowledgebase
[help] nginx as reverse proxy for multimedia files
Posted by dewaforex, 12-12-2010, 12:51 AM | Hi, I need help again,
I'm new with nginx, just installed nginx for multimedia files and dynamic files still using apache
I had folder "dl" for my multimedia files mp3.
And only user that had cookies that generate from download page can access it and prevent a country to access it but allow server ip to access it as the server ip is from same country that is restricted and prevent hotlinking my files too.
When using apache was not problem I can used htaccess
This is the htaccess code
With this setting, it's seem the cookies and country restriction is working but the download file is accessing using nginx and apache so the download is not smoothly, a few second run and than it's seem stop for a few second and then start again.
I check at the log, the file through using nginx and apache that I was suppose only using nginx.
but if add mp3 file type in this setting
Files accessing through nginx but the rules for cookie,country restriction and hot linking are not working.
As I'm new with nginx I don't how to solve it
I hope anyone can help me.
Thank you
|
Posted by dewaforex, 12-12-2010, 07:51 PM | Problem with download is not run smoothly with first setting is fixed
It's because the permission of this folder "/usr/local/nginx/proxy_temp/
But still the file using nginx and apache when using first setting.
|
|
Add to Favourites
Print this Article |
Also Read