How to configure access to a local BigBlueButton server from the Internet using mod_proxy of Apache on the gateway?

Your local network has a server on Ubuntu c BigBlueButton (BBB)
The Internet gateway works WinServer2008, Routing (NAT) and Trafficinduced top.
The task is to bring BigBlueButton in the Internet.
For BigBlueButton need 80, 1935, 9123 ports.
The last two ports are screwed through portmapping.
Port 80 can't because gateway is a Apache with their tasks, and he was 80 as needed.
I tried using mod_proxy in Apache, the lower setting (192.168.0.29 - address of the PC with the BBB in LAN)

<virtualhost *:80> 
 ServerAdmin admin@example.com
 DocumentRoot C:/Apache2/htdocs/bbb
 ServerName subdomain
 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>


In the end, opening http://поддомен - opens the page with nginx running on BBB (so, it goes to the right place).
But when referring to http://поддомен/bigbluebutton/ gives a 404 error (the 404 from nginx on the server)
However, obrashenii to 192.168.0.29/bigbluebutton all normul

BBB settings out of the box
In any case, the output of bbb-conf --check
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)
 name server: 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.


The DECISION
in /etc/nginx/sites-available/bigbluebutton to register a domain
server {
listen 80;
server_name subdomain
ipeer;
3 answers
September 16th 19 at 20:48
Solution
Judging by
But when referring to http://поддомен/bigbluebutton/ gives a 404 error (the 404 from nginx on the server)
proxy to nginx in norm, see configuring the nginx (it may help reading his logs)
in the logs this:
access.log
I go to http://поддомен
192.168.0.10 - - [14/May/2015:15:39:33 +0300] "GET / HTTP/1.1" 200 612 "-" "Mozilla/5.0 (Linux; Android 4.4.2; ASUS_T00G Build/KVT49L) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.111 Mobile Safari/537.36"
I go to http://поддомен/bigbluebutton/
192.168.0.10 - - [14/May/2015:15:39:38 +0300] "GET /bigbluebutton HTTP/1.1" 404 579 "-" "Mozilla/5.0 (Linux; Android 4.4.2; ASUS_T00G Build/KVT49L) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.111 Mobile Safari/537.36"

in other logs bigbluebutton.access.log and error.log on this time there is nothing - Summer51 commented on September 16th 19 at 20:51
forgot to add: 192.168.0.10 gateway address on Windows which Apache - Summer51 commented on September 16th 19 at 20:54
And if you go from the local area, in bigbluebutton.access.here are log entries for example
192.168.0.101 - - [14/May/2015:15:42:48 +0300] "GET /bigbluebutton/ HTTP/1.1" 200 86 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36"
192.168.0.101 - - [14/May/2015:15:43:02 +0300] "GET /bigbluebutton/ HTTP/1.1" 200 86 "-" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36" - Summer51 commented on September 16th 19 at 20:57
Setup bigbluebutton in /etc/nginx/sites-available
-----------------------------------------------------------------------------------
server {
listen 80;
server_name 192.168.0.29;

access_log /var/log/nginx/bigbluebutton.access.log;

# Handle RTMPT (RTMP Tunneling). Forwards requests
# to Red5 on port 5080
location ~ (/open/|/close/|/idle/|/send/|/fcs/) {
proxy_pass http://127.0.0.1:5080;
"proxy_redirect" off;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

client_max_body_size 10m;
client_body_buffer_size 128k;

proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;

proxy_buffering off;
keepalive_requests 1000000000;
}

# Handle desktop sharing tunneling. Forwards
# requests to Red5 on port 5080.
location /deskshare {
proxy_pass http://127.0.0.1:5080;
default "proxy_redirect";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
include fastcgi_params;
}

# BigBlueButton landing page.
location / {
root /var/www/bigbluebutton-default;
index index.html index.htm;
expires 1m;
}

# Include specific rules for record and playback
include /etc/bigbluebutton/nginx/*.nginx;

#error_page 404 /404.html;

# Redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/www/nginx-default;
}
}
------------------------------------------------------------------------------
so when you step out of the local area is written to the log bigbluebutton.access.log
and with the Internet there =( - Summer51 commented on September 16th 19 at 21:00
Changed 192.168.0.29 server_name; server_name for subdomain - now with the Internet it works, but it does not work get!=)))) - Summer51 commented on September 16th 19 at 21:03
September 16th 19 at 20:50
If access is needed to a subdirectory on the website, provide a configuration like the following:
<virtualhost *:80> 
 ProxyPreserveHost On
 ProxyPass / http://192.168.0.29/bigbluebutton/
 ProxyPassReverse / http://192.168.0.29/bigbluebutton/
 </virtualhost>

It is to this, remove everything else. For proxying these lines enough.
Tried - this is the same 404 error from nginx on it (192.168.0.29) server - Summer51 commented on September 16th 19 at 20:53
Then He11ion rights. It is necessary to look into the nginx. His logs at the same time? - Summer51 commented on September 16th 19 at 20:56
September 16th 19 at 20:52
But what if the only kind of code you dumbstruck as me? I installed the BBB server version 1.1 and now use the web-site createwebinar.com in bundles with its server for free! There is a calendar of upcoming and past webinars, the ability to download held a webinar in MP4 format and post it on video hosting Vimeo. Overall a very comfortable bunch, I recommend!

Find more questions by tags Computer networksNetwork administrationNginxApacheBigBlueButton