Answer the question
In order to leave comments, you need to log in
Does the speed of the application slow down significantly when using proxy_pass?
Greetings, there is a certain site and it broadcasts a video, I would like to push it into an iframe and display it on my site, but there is a problem! it is without https and when added to an iframe it displays something completely different) apparently looks at the header Host.
So I stuffed it into proxy_pass like this:
location /stream {
proxy_pass http://******.stream/stream.php;
proxy_set_header Host *******.stream;
proxy_set_header Referer http://******.**;
proxy_set_header Upgrade-Insecure-Requests 1;
proxy_set_header Accept-Encoding "";
sub_filter '<body>' '<body style="margin: 0">';
sub_filter_once off;
}
Answer the question
In order to leave comments, you need to log in
First, check the channel and download speed from the server in hetzner to the server http://******.stream/stream.php;
There are suspicions that the problem is not in the proxy_pass, but in the channel
1 sub_filter - maybe this is a problem
2. ping from this server before and not from your computer
3. if you have Apache, try http proxy, maybe there will be different, at least the statistics will be there.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question