Dear Aleks,
Your insights are thorough and your knowledge seems to be vast---from
HAProxy to Tomcat to Red5 server…and perhaps many more. It is a
pleasure to learn from you. Below we have provided the information you
requested. Your further guidance will help solve this issue that we are
facing to access products through HAProxy.
Yes, Tomcat proxies Red5 server. Diff with red5.properties (you
referred in your link) is given below.
Product1 can be accessed
(1) directly, i.e., without HAProxy
(2) via Apache mod_proxy, reverse proxy and mod_ssl (HTTPS). SSL
certificate is authentic as Apache HTTP server and nginx are using it to
serve other products.
The only problem: In HAProxy case, we are unable to access Product1.
Product1 is talking http (no SSL) with Tomcat. SSL termination happens
at HAProxy.
++++++
Red5.properties: Diff with
(https://github.com/Red5/red5-server/blob/master/src/main/server/conf/red5.properties)
++++++
http.host=<APPLICATION_IP>
http.port=5080 # for dev, 5081 for testing
…
rtmp.port=1935 # for dev, 1937 for testing
…
rtmp.deadlockguard.sheduler.pool_size=16
# message executor configs (per application) - adjust these as needed if
you get tasks rejected
…
rtmp.channel.initial.capacity=3
rtmp.channel.concurrency.level=1
rtmp.stream.initial.capacity=1
rtmp.stream.concurrency.level=1
rtmp.pending.calls.initial.capacity=3
rtmp.pending.calls.concurrency.level=1
rtmp.reserved.streams.initial.capacity=1
rtmp.reserved.streams.concurrency.level=1
Thank you.
Sincerely,
--
Susheel Jalali
Coscend Communications Solutions
Web site: www(DOT)Coscend(DOT)com
------------------------------------------------------------------
CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail
Messages from Coscend Communications Solutions' posted at:
www(DOT)Coscend(DOT)com/Terms_and_Conditions.html
------------------------------------------------------------------
-------- Original Message --------
Subject: Re: HTTP Response Rewriting to Replace Internal IP with FQDN
From: Aleksandar Lazic <al-hapr...@none.at>
Date: Tue, October 13, 2015 2:44 pm
To: Susheel Jalali <susheel.jal...@coscend.com>
Cc: haproxy@formilux.org, "i...@coscend.com" <i...@coscend.com>
Am 13-10-2015 23:36, schrieb Aleksandar Lazic:
> Dear Susheel Jalali.
>
> Am 13-10-2015 22:20, schrieb Susheel Jalali:
>> Dear Aleks,
>
> [snipp]
>
>> ++++++
>> Tomcat’sweb.xml <http://web.xml/>
>> ++++++++
>> Inweb.xml <http://web.xml/>, the context parameter is:
>>
>> <context-param>
>> <param-name>globalScope</param-name>
>> <param-value>default</param-value>
>> </context-param>
>>
>> and the filter mapping for the application is:
>> <filter-mapping>
>> <filter-name>Product1Application</filter-name>
>> <url-pattern>/*</url-pattern>
>> </filter-mapping>
>>
>> ++++++
>> Tomcat’sconfig.xml <http://config.xml/>
>> ++++++
>> <rtmphostlocal></rtmphostlocal>
>> <httphostlocal></httphostlocal>
>> <rtmpport>1937</rtmpport>
>> <rtmpsslport>8443</rtmpsslport>
>> <useSSL>no</useSSL>
>> <red5httpport>5081</red5httpport>
>> <protocol>http</protocol>
>> <proxyType>none</proxyType>
>> <currentappname>Product1</currentappname>
>> <webAppRootKey>Product1</webAppRootKey>
>> <httpRootKey>/Product1/</httpRootKey>
>
> Sorry but this could not be the fullweb.xml <http://web.xml/>and
server.xml!
>
> Tomcat will not be able to start with this files!
>
> Du you try to proxy the RED5 server?!
>
> https://github.com/Red5/red5-server
If yes what's in your red5.properties ?
https://github.com/Red5/red5-server/blob/master/src/main/server/conf/red5.properties
From my point of view it looks like you need to set the http.*
variables
to the right values.
https://github.com/Red5/red5-server/blob/3a6885433218ce2070b9064e195fc2ffde031c88/src/main/java/org/red5/server/net/servlet/RedirectHTTPServlet.java#L42
e. g.: https.port=1443 or what you want
> BR
> Aleks