-
1. Re: Is there any way to proxy both http and websocket on one apache?
jfclere Oct 30, 2015 9:20 AM (in response to angelfall)mod_proxy_wstunnel should allow to do that.
-
2. Re: Is there any way to proxy both http and websocket on one apache?
angelfall Nov 4, 2015 4:11 AM (in response to jfclere)mod_proxy_wstunnel supports websocket, and mod_proxy_http and mod_proxy_ajp support http.
when a websocket request and a http request come into apache with modcluster,
how can i configure to proxy them to the backends with the same protocol as coming in?
may be this is a strange scenario.
There is a Jboss server(ip:1.1.1.1),supported websocket and http in different url.
access Jboss server like following:
http://1.1.1.1/Servlet/http
ws://1.1.1.1/Servlet/ws
when i use apache(ip:2.2.2.2) with modclucter for loadbalancing, problem comes.
if accessing http://2.2.2.2/Servlet/http success, accessing ws://2.2.2.2/Servlet/ws will fail.
if accessing ws://2.2.2.2/Servlet/ws success, accessing http://2.2.2.2/Servlet/http will fail.
It seems that apache with modclucter can not proxy http and websocket request at same time.
-
3. Re: Is there any way to proxy both http and websocket on one apache?
mbabacek Nov 4, 2015 4:25 AM (in response to angelfall)Wouldn't it help to distinguish between your ws and http servlets with a ProxyPassMatch directive?
-
4. Re: Is there any way to proxy both http and websocket on one apache?
angelfall Nov 4, 2015 9:43 PM (in response to mbabacek)thanks for you suggesstion.
I have tried ProxyPassMatch and ProxyPass, but it didn't help me.
I look up the document and source code of modcluster, and find that ProxyPassMatch and ProxyPass can only be use like:
"ProxyPassMatch regex !"