C
C
CheGevara2015-05-14 12:01:24
Nginx
CheGevara, 2015-05-14 12:01:24

How to set up access to the local BigBlueButton server from the Internet through Apache's mod_proxy on the gateway?

In the local network there is a server on Ubuntu with BigBlueButton (BBB)
​​WinServer2008 works as an Internet gateway, Routing (NAT) and TrafficInspector from above.
The task is to bring BigBlueButton to the Internet.
BigBlueButton needs ports 80, 1935 and 9123.
I passed the last two ports through portmaping.
I can’t port 80, because Apache is on the gateway with its own tasks, and it also needs 80.
I tried using Apache's mod_proxy, below is the setting (192.168.0.29 - the address of the PC with BBB in LAN)

<VirtualHost *:80> 
    ServerAdmin [email protected]
    DocumentRoot C:/Apache2/htdocs/bbb
    ServerName поддомен
    ServerAlias www.bbb.arhlib.ru
 
    ProxyRequests Off 
    <Proxy *> 
        Order deny,allow 
        Allow from all 
    </Proxy> 
 
    <Directory C:/Apache2/htdocs/bbb>
        Order Allow,Deny
  deny from all 
    </Directory> 
 
    ProxyPreserveHost On
    ProxyPass /	http://192.168.0.29/
    ProxyPassReverse / http://192.168.0.29/
 
    ErrorLog "C:/Apache2/logs/bbb.log" 
    CustomLog "C:/Apache2/logs/bbb.log" combined 
 
</VirtualHost>

As a result, opening the http: // subdomain opens the nginx page on which the BBB works (that is, it seems to go where it needs to).
But when accessing http://subdomain/bigbluebutton/ it gives a 404 error (from 404 nginx on this server)
At the same time, when accessing 192.168
.
BigBlueButton Server 0.9.0 (699)
                    Kernel version: 3.16.0-37-generic
                      Distribution: Ubuntu 14.04.2 LTS (64-bit)
                            Memory: 1953 MB

/var/www/bigbluebutton/client/conf/config.xml (bbb-client)
                Port test (tunnel): 192.168.0.29
                              Red5: 192.168.0.29
              useWebrtcIfAvailable: true

/opt/freeswitch/conf/sip_profiles/external.xml (FreeSWITCH)
                    websocket port: 5066
                    WebRTC enabled: true

/etc/nginx/sites-available/bigbluebutton (nginx)
                       server name: 192.168.0.29
                              port: 80
                    bbb-client dir: /var/www/bigbluebutton

/var/lib/tomcat7/webapps/bigbluebutton/WEB-INF/classes/bigbluebutton.properties (bbb-web)
                      bbb-web host: 192.168.0.29

/usr/share/red5/webapps/bigbluebutton/WEB-INF/red5-web.xml (red5)
                  voice conference: FreeSWITCH
                     capture video: true
                   capture desktop: true

/usr/local/bigbluebutton/core/scripts/bigbluebutton.yml (record and playback)
                     playback host: 192.168.0.29


** Potential problems described below **
# Warning: You are running BigBlueButton on a server with less than 4G of memory.  Your
# performance may suffer.

SOLUTION
in /etc/nginx/sites-available/bigbluebutton to register the domain
server {
listen 80;
server_name IP_server subdomain
;

Answer the question

In order to leave comments, you need to log in

3 answer(s)
H
He11ion, 2015-05-14
@CheGevara

Judging by

But when accessing http://subdomain/bigbluebutton/ it gives a 404 error (from nginx 404 on this server)
- proxy to nginx is normal, see settings of nginx itself (reading its logs can help)

M
mureevms, 2015-05-14
@mureevms

Если доступ нужен до подкаталога на сайте, приведите конфиг к такому виду:

<VirtualHost *:80> 
    ProxyPreserveHost On
    ProxyPass /	http://192.168.0.29/bigbluebutton/
    ProxyPassReverse / http://192.168.0.29/bigbluebutton/
 </VirtualHost>

Именно к такому, уберите все остальное. Для проксирования этих строк достаточно.

C
clockwise, 2018-01-31
@clockwise

А как быть если только вид кода вас вгоняет в ступор, как меня? Я установил BBB сервер версии 1.1 и теперь еще использую веб сайт createwebinar.com в связки со своим сервером бесплатно! Есть календарь планируемых и прошедших вебинаров, возможность скачать состоявшийся вебинар в формате MP4, запостить это видео на хостинге Vimeo. В общем очень удобная связка, рекомендую!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question