Groups
Conversations
All groups and messages
Send feedback to Google
Help
Training
Sign in
Groups
nginx-rtmp
Conversations
Labels
About
302 Redirects to Upstream Servers Nginx
119 views
Skip to first unread message
Canlı TV
unread,
Dec 30, 2021, 4:11:53 PM
12/30/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nginx-rtmp
I made a load balancer using Upstream. as follows.
```
*
*
*
upstream appservers {
least_conn;
server
srv1.domain.com:443
;
server
srv2.domain.com:443
;
}
*
*
*
server {
listen 443 ssl http2;
server_name
domain.com:443
;
location /hls {
proxy_pass
https://appservers/hls
;
}
}
*
*
*
```
I set nginx.conf similar to above.
It's working fine now, but the main server
domain.com:443
is heavily affected by live streams. How can I 302 forward this traffic to the edge servers?
So I want to direct every incoming request as a link to the end servers.
**
domain.com/hls/test.m3u8
>
srv1.domain.com/hls/test.m3u8**
**
domain.com/hls/test.m3u8
>
srv2.domain.com/hls/test.m3u8**
*
*
As. I want to distribute live streams to upstream servers.
Thanks.
Reply all
Reply to author
Forward
0 new messages