Search This Blog

Tuesday, June 20, 2017

How to replace Bigbluebutton URL with your own | Change BigBlueButton.html URL | Rewrite URL in NGINX | Change URL Using NGINX.


With a small change in NGINX configuration it can be changed and you can rewrite the incoming URL for BigBlueButton.html for showing your own URL such as https://www.example.com/example.html/.

Follow below steps to change the same.

Go inside /etc/bigbluebutton/nginx and open client.nginx with any editor such as nano, cat or via and comment the following lines.

        # BigBlueButton.html is here so we can expire it every 1 minute to
        # prevent caching.
        #location /client/BigBlueButton.html {
        #        root    /var/www/bigbluebutton;
        #        index  index.html index.htm;
        #        expires 1m;
        #}

Then create the file "rewrite.nginx" at the same location (/etc/bigbluebutton/nginx) with the below content.

Note - change your own parameters on the place of "custom" ex. "example.html permanent" and "location /custom" to "location /example.html";

location /client/BigBlueButton.html {
        rewrite ^ /custom permanent;
}

location /custom {
        alias  /var/www/bigbluebutton/client;
        index BigBlueButton.html;
        expires 1m;
}

Now its done and you need to restart you NGINX with below commands

   sudo service ngnix restart
or
   sudo systemctl restart nginx

Now access your server demo URL www.example.com and it will shows example.html instead of BigBlueButton.html.


No comments:

Post a Comment

Copyright © 2017 | Aayush Kamboj. Powered by Blogger.