rtmphostlocal usage (because firewall workaround)

372 views
Skip to first unread message

szimszon

unread,
May 16, 2008, 4:01:34 AM5/16/08
to OpenMeetings User
Hi!

I have a weird problem. I was almost able to work around the firewall
problems (only 80 port).

But after I specified the rtmphostlocal value this value is used for
the http-servlet address too.
I have problem with file upload and download.

The url is: http://<rtmphostlocal>:<red5httpport>/...
but I need: http://<the address in the browsers address bar>/...

I think it could be good to have one another field called
httphostlocal and httphostlocalport or so to do the job :)

In my situation:

* I have 1 IP address, one computer
* I use apache2 to proxy everything
<VirtualHost 212.52.166.158:80>
ServerName meet.oregpreshaz.eu
AddDefaultCharset UTF-8
ProxyPass / http://localhost:5080/openmeetings/
ProxyPassReverse / http://localhost:5080/openmeetings/
<Proxy *>
Allow from all
</Proxy>
ErrorLog /var/log/apache2/meet.oregpreshaz.eu/error.log
CustomLog /var/log/apache2/meet.oregpreshaz.eu/access.log combined
</VirtualHost>

<VirtualHost 212.52.166.158:80>
ServerName rtmpt.oregpreshaz.eu
AddDefaultCharset UTF-8
ProxyPass / http://localhost:8088/
ProxyPassReverse / http://localhost:8088/
<Proxy *>
Allow from all
</Proxy>
ErrorLog /var/log/apache2/meet.oregpreshaz.eu/error.log
CustomLog /var/log/apache2/meet.oregpreshaz.eu/access.log combined
</VirtualHost>

* I use virtualhosts to separate http and rtmpt traffic
<rtmphostlocal>rtmpt.oregpreshaz.eu</rtmphostlocal>
<rtmpport>1935</rtmpport>
<rtmpTunnelport>80</rtmpTunnelport>
<red5httpport>5080</red5httpport>

But I need that the http domain name stay meet.oregpreshaz.eu and
_not_ the rtmphostlocal value rtmpt.oregpreshaz.eu

Is it possible to change the code to do the trick? After that you need
only port 80 to operate :) (I think:)

Sebastian Wagner

unread,
May 16, 2008, 4:45:22 AM5/16/08
to openmeet...@googlegroups.com
*http://<the address in the browsers address bar>*

=> if you leave the field *rtmphostlocal* blank it will automatically parse and use the URL (Domain) from Browser Bar (The URL the SWF has been loaded from)

sebastian

2008/5/16 szimszon <szim...@gmail.com>:



--
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.laszlo-forum.de
seba....@gmail.com

szimszon

unread,
May 16, 2008, 4:55:06 AM5/16/08
to OpenMeetings User
Yes I know but I need two different domain name to operate two
channels (http and rtmpt) on the same port so apache2 can separate it
on virtualhost basis.

So I need
meet.oregpreshaz.eu[:80] for http-servlet
and
rtmpt.oregpreshaz.eu[:80] for rtmpt session

:(

On máj. 16, 10:45, "Sebastian Wagner" <seba.wag...@gmail.com> wrote:
> *http://<the address in the browsers address bar>*
>
> => if you leave the field *rtmphostlocal* blank it will automatically parse
> and use the URL (Domain) from Browser Bar (The URL the SWF has been loaded
> from)
>
> sebastian
>
> 2008/5/16 szimszon <szims...@gmail.com>:
>
>
>
>
>
> > Hi!
>
> > I have a weird problem. I was almost able to work around the firewall
> > problems (only 80 port).
>
> > But after I specified the rtmphostlocal value this value is used for
> > the http-servlet address too.
> > I have problem with file upload and download.
>
> > The url is: http://<rtmphostlocal>:<red5httpport>/...
> > but I need: http://<the address in the browsers address bar>/...
>
> > I think it could be good to have one another field called
> > httphostlocal and httphostlocalport or so to do the job :)
>
> > In my situation:
>
> > * I have 1 IP address, one computer
> > * I use apache2 to proxy everything
> > <VirtualHost 212.52.166.158:80>
> >  ServerName meet.oregpreshaz.eu
> >  AddDefaultCharset UTF-8
> >  ProxyPass /http://localhost:5080/openmeetings/
> >  ProxyPassReverse /http://localhost:5080/openmeetings/
> >  <Proxy *>
> >    Allow from all
> >  </Proxy>
> >  ErrorLog /var/log/apache2/meet.oregpreshaz.eu/error.log
> >  CustomLog /var/log/apache2/meet.oregpreshaz.eu/access.log combined
> > </VirtualHost>
>
> > <VirtualHost 212.52.166.158:80>
> >  ServerName rtmpt.oregpreshaz.eu
> >  AddDefaultCharset UTF-8
> >  ProxyPass /http://localhost:8088/
> >  ProxyPassReverse /http://localhost:8088/
> >  <Proxy *>
> >    Allow from all
> >  </Proxy>
> >  ErrorLog /var/log/apache2/meet.oregpreshaz.eu/error.log
> >  CustomLog /var/log/apache2/meet.oregpreshaz.eu/access.log combined
> > </VirtualHost>
>
> > * I use virtualhosts to separate http and rtmpt traffic
> > <rtmphostlocal>rtmpt.oregpreshaz.eu</rtmphostlocal>
> > <rtmpport>1935</rtmpport>
> > <rtmpTunnelport>80</rtmpTunnelport>
> > <red5httpport>5080</red5httpport>
>
> > But I need that the http domain name stay meet.oregpreshaz.eu and
> > _not_ the rtmphostlocal value rtmpt.oregpreshaz.eu
>
> > Is it possible to change the code to do the trick? After that you need
> > only port 80 to operate :) (I think:)
>
> --
> Sebastian Wagnerhttp://www.webbase-design.dehttp://openmeetings.googlecode.comhttp://www.laszlo-forum.de
> seba.wag...@gmail.com

szimszon

unread,
May 16, 2008, 4:59:00 AM5/16/08
to OpenMeetings User
I forgot I have red5 running on 5080 and rtmpt on 8088 standard ports
so apache2 do the proxy things

browser -> (meet.oregpreshaz.eu) http-servlet port 80 -> apache2 proxy
to localhost -> red5 port 5080
browser -> (rtmpt.oregpreshaz.eu) rtmpt port 80 -> apache2 proxy to
localhost -> rtmpt port 8088

Sebastian Wagner

unread,
May 16, 2008, 5:03:37 AM5/16/08
to openmeet...@googlegroups.com
this is not a recommended approach to run both applications on the same port.
You can use apache_proxy to make rtmpt and apache lookalike running both on port 80.

sebastian

2008/5/16 szimszon <szim...@gmail.com>:

szimszon

unread,
May 16, 2008, 6:01:45 AM5/16/08
to OpenMeetings User
On máj. 16, 11:03, "Sebastian Wagner" <seba.wag...@gmail.com> wrote:
> this is not a recommended approach to run both applications on the same
> port.
Yes, but it works partially (login and chat at least) . And I have to
run it on one port to be able to connect behind the firewall...

> You can use apache_proxy to make rtmpt and apache lookalike running both on
> port 80.
That is not the problem. The problem is that the code somewhere told
the browser for file download/upload to use "rtmpthostlocal value" and
"red5httpport" instead of the address in browser addressbar.

Sorry my English is not really good... :(

Sebastian Wagner

unread,
May 16, 2008, 6:05:28 AM5/16/08
to openmeet...@googlegroups.com
yes cause the *rtmpthostlocal* == red5 hostname.
You are right that this could be run on different host but for you its just a matter of different domain names.
*I have to
run it on one port to be able to connect behind the firewall*
=> if you use the apache_proxy modus it does LOOKLIKE running on one port cause apache rewrites internal everything from 80 to your rtmpt port.

sebastian

2008/5/16 szimszon <szim...@gmail.com>:

szimszon

unread,
May 17, 2008, 6:54:26 AM5/17/08
to OpenMeetings User
On máj. 16, 12:05, "Sebastian Wagner" <seba.wag...@gmail.com> wrote:
> yes cause the *rtmpthostlocal* == red5 hostname.
> You are right that this could be run on different host but for you its just
> a matter of different domain names.
It seems to me that the problem occur only on file upload/ download...

> *I have to
> run it on one port to be able to connect behind the firewall*
> => if you use the apache_proxy modus it does LOOKLIKE running on one port
> cause apache rewrites internal everything from 80 to your rtmpt port.

If I understand well if the OpenMeeting code say explicitly that the
browser must look for the file on <rtmpthostlocal>:<red5httpport> the
apache proxy could do nothing about it...

Could we possibly meet next week or so on skype/jabber/OpenMeetings to
discuss my problem if you have time?

I think I wasn't as precise on problem description as I wished :(

szimszon

unread,
May 20, 2008, 8:03:46 AM5/20/08
to OpenMeetings User
Reply all
Reply to author
Forward
0 new messages