Re: [SR-Users] apache 2.4 wstunnel

2015-04-08 Thread Alex Balashov
On 04/08/2015 03:32 PM, Muhammad Shahzad wrote: In my opinion, Nginx has a better solution then apache for WS proxy. It allows to define "extra" headers that the proxy service is suppose to forward to backend server, so that back-end server have full understanding of client characteristics (incl

Re: [SR-Users] apache 2.4 wstunnel

2015-04-08 Thread Muhammad Shahzad
i somewhat agree with Daniel. The wstunnel should forward Connection and Upgrade headers, instead of absorbing them. Otherwise kamailio or whatever back-end server you may use will never know it is WS connection, thus would treat the connection in simple HTTP context. In my opinion, Nginx has a be

Re: [SR-Users] apache 2.4 wstunnel

2015-04-08 Thread Daniel-Constantin Mierla
On 08/04/15 15:28, Juha Heinanen wrote: > Daniel-Constantin Mierla writes: > >> It still not clear to me what is going (or expected) to happen >> afterwards. Will this connection be http or websocket? Because websocket >> requires framing of the data. Http stays tcp streaming connection. >> >> Gi

Re: [SR-Users] apache 2.4 wstunnel

2015-04-08 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > It still not clear to me what is going (or expected) to happen > afterwards. Will this connection be http or websocket? Because websocket > requires framing of the data. Http stays tcp streaming connection. > > Given that it is started as HTTP but no Upgrade is

Re: [SR-Users] apache 2.4 wstunnel

2015-04-07 Thread Daniel-Constantin Mierla
On 07/04/15 11:04, Juha Heinanen wrote: > Daniel-Constantin Mierla writes: > >>> forgot to include an example of a GET request from the tunnel: >>> >>> GET / HTTP/1.1. >>> Host: 192.98.102.30:8000. >>> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 >>> Firefox/31.0 Iceweasel

Re: [SR-Users] apache 2.4 wstunnel

2015-04-07 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > > forgot to include an example of a GET request from the tunnel: > > > > GET / HTTP/1.1. > > Host: 192.98.102.30:8000. > > User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 > > Firefox/31.0 Iceweasel/31.6.0. > > Accept: text/html,application/xh

Re: [SR-Users] apache 2.4 wstunnel

2015-04-07 Thread Daniel-Constantin Mierla
Hello, On 06/04/15 14:41, Juha Heinanen wrote: > Juha Heinanen writes: > >> apache 2.4 has capability to tunnel websocket requests: >> >> https://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html >> >> the tunnel also automatically upgrades the connection to websocket >> connection meaning th

[SR-Users] apache 2.4 wstunnel

2015-04-06 Thread Juha Heinanen
Juha Heinanen writes: > apache 2.4 has capability to tunnel websocket requests: > > https://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html > > the tunnel also automatically upgrades the connection to websocket > connection meaning that ws_handle_handshake() is not needed. > > has anyone

[SR-Users] apache 2.4 wstunnel

2015-04-06 Thread Juha Heinanen
apache 2.4 has capability to tunnel websocket requests: https://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html the tunnel also automatically upgrades the connection to websocket connection meaning that ws_handle_handshake() is not needed. has anyone managed to configure kamailio to handle