bbb-install icon indicating copy to clipboard operation
bbb-install copied to clipboard

bbb-install.sh installing nginx but not disabling the package's default site

Open rootdaemon opened this issue 9 months ago • 2 comments

I have been setting up BBB and Greenlight using the bbb-install script on freshly installed Ubuntu 22.04. When checking the installation I noticed that port 80 of the machine responded somewhat unexpected:

Welcome to nginx! If you see this page, the nginx web server is successfully installed and working. Further configuration is required. For online documentation and support please refer tonginx.org. Commercial support is available at nginx.com. Thank you for using nginx.

Looking into this I found that the nginx package's default website is still enabled and overrides the BBB settings (symlink default in /etc/nginx/sites-enabled present).

Deleting the symlink fixed the issue and port 80 redirects to port 443 as expected.

This behavior was reproducible on different installs of Ubuntu 22.04 server in minimal installation where the install script had to pull all necessary packages off the net.

It would be great if bbb-install.sh would check for the presence of /etc/nginx/sites-enabled/default and remove the symlink to leave a defined state.

rootdaemon avatar Apr 07 '25 08:04 rootdaemon

Good suggestion. We're planning some updates to bbb-install.sh, but if you want to send a pull request, that would be appreciated as well!

ffdixon avatar Apr 07 '25 22:04 ffdixon

PR submitted. Placed the code block where it seemed best suited for me, before reload of the nginx config. Hope this is acceptable.

rootdaemon avatar Apr 08 '25 09:04 rootdaemon