I have a question regarding the behavior of proxy_pass in nginx. Let's suppose the nginx config has the following location property:
location /a.mp4 {
proxy_pass http://3rd_party_domain/a.mp4;
}
(Note that the syntax might be incorrect, but you can get what I'm trying to say)
Question: When an user tries to download a.mp4 on my domain, where the actual traffic comes from? I can think of the following possible scenarios:
#1 3rd_party_domain -----> client
#2 3rd_party_domain -----> my_domain -----> client
I hope #1 is the case here, but wondering whether actually behavior is something like #2.
Thanks!
It goes through my_domain, the client uses my_domain like a "tunnel".