How to redirect http to https Greenlight

266 views
Skip to first unread message

Paul Mangiagalli

unread,
Nov 21, 2017, 11:07:08 AM11/21/17
to BigBlueButton-dev
Afternoon guys,

How can I get http to redirect to https for greenlight ?

The reason if a client types in the url without https, it all works until you try and log in with google and then you get an error 404 as it is not running through HTTPS?


Many thanks Paul

Chad Pilkey

unread,
Nov 21, 2017, 1:14:35 PM11/21/17
to BigBlueButton-dev
You might be able to do it with an nginx redirect like here, https://www.bjornjohansen.no/redirect-to-https-with-nginx. The only tricky bit is that the BBB server needs to listen and respond to port 80 for RTMPT (Flash Tunneling) so you can just redirect 80 to 443 for everything.

Paul Mangiagalli

unread,
Nov 22, 2017, 7:35:40 AM11/22/17
to BigBlueButton-dev
Hi, I have read the article, 

I already have the SSL installed and configured SSL, but it is not auto redirecting http to https, so I believe the only thing I have to follow is step 04 which says 

04: Redirect all HTTP traffic to HTTPS in your Nginx config:
 
server {
 listen 80 default_server;
 listen [::]:80 default_server;
 server_name _;
 return 301 https://$host$request_uri;
}

------------- 
I know that I am adding it nginx.config file in etc/nginx folder, shall I just paste the code in the end? Also am I replacing 80 with 443 or redireciting it to 443 ? and how?

Regards,
Paul

Chad Pilkey

unread,
Nov 22, 2017, 12:38:14 PM11/22/17
to BigBlueButton-dev
You're kind of branching out on your own for this one I think. You'll need to understand the nginx configuration requirements and what we have now before modifying it. You can go very wrong with the nginx config if you don't fully know what you're doing.

It might actually be easier to put some javascript into the first landing page that redirects to https if it detects "http://" in the URL. I'm not familiar with Greenlight so I'm not sure where that would actually go though.
Reply all
Reply to author
Forward
0 new messages