Answer the question
In order to leave comments, you need to log in
Music proxying through nginx?
there is a php site on
it you can play music through the Contact
player accesses the file /mp3.php?url=link_to_file_from_vk.mp3 (where fopen, fread happens)
it turns out that Apache heavily loads the server.
what needs to be written in the nginx config to make proxying through nginx.
ps direct links will not work, tk. VK generates mp3 links taking into account the ip-server.
Answer the question
In order to leave comments, you need to log in
(where fopen, fread happens)
location /mp3.php {
rewrite .+ $arg_uri break;
proxy_pass $arg_server;
}
/mp3.php?uri=/path/to/mp3&server=http://downoad.vk.com
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question