0

We are using Nginx-RTMP Streaming and trying to redirect both 80 and 8080 to https. We have tried with redirecting different SSL port in AWS Classic load balancer but its doesn't work.

Nginx RTMP Statistics URL->http://domainname:8080/stats

Please provide solution to use https for both 80 & 8080?

bhuva nesh
  • 21
  • 1
  • 5

1 Answers1

0

This is our setup for a classic load balancer with redirection to 8080. Replicate it adding the 80 port redirection, and do not forget the SSL certificate.

classic ELB

Conti
  • 1,153
  • 9
  • 12
  • Yes. We have tried above solution already but still https://streaming.example.com:8080/stats is not working. Is it due to redirection done under application load balancer configured for main domain example.com? – bhuva nesh Aug 02 '19 at 10:25
  • Sorry for the delay, it could be but we would need more info about the web server config. In our case the nginx config has no special setup, just the alias to the streaming.example.com at port 80. – Conti Aug 07 '19 at 14:38
  • listen 80; listen 8080; listen 443 ssl; server_name Server-IP "streaming.example.com"; – bhuva nesh Aug 08 '19 at 09:00
  • did you try removing the 443 and 80 listen directive? – Conti Aug 12 '19 at 06:49
  • Here i have to use both 80 and 8080. will remove listener port and check it for 8080 – bhuva nesh Aug 14 '19 at 09:04
  • Thanks for your support. Issue has got fixed – bhuva nesh Sep 07 '19 at 09:06
  • It would be nice to add the solution as an "edit" in the question, in case someone has the same problem :) – Conti Sep 09 '19 at 15:41