https://bz.apache.org/bugzilla/show_bug.cgi?id=58593

--- Comment #2 from Tabby <[email protected]> ---
Hi Yann,
not sure if this is a bug, anyway I don't know how to handle this case.

Scenario:
We have to serve both http and ws requests under the same URI, through an
apache reverse proxy.

I thought this would work:
<Location /ws/live/>
    ### Settings for WebSocket
    ProxyPass        ws://vip-be/wwgw/var/ disablereuse=on  timeout=30

    ### Settings for HTTP
    ProxyPass        http://vip-be/wwgw/var/ smax=0  ttl=15
    ProxyPassReverse http://vip-be/wwgw/var/
</Location> 

but in case of websocket requests it seems mod_proxy always selects http
handler, instead of ws, despite the right choice of scheme done by the core.

Here are the logs:

[core:debug]  protocol.c(1840): [client 172.26.130.177:59719] select protocol
from , choices=websocket for server wstest
[proxy:debug]  mod_proxy.c(1160): [client 172.26.130.177:59719] AH01143:
Running scheme http handler (attempt 0)
[proxy:debug]  proxy_util.c(2160): AH00942: HTTP: has acquired connection for
(vip-be)
[proxy:debug]  proxy_util.c(2213): [client 172.26.130.177:59719] AH00944:
connecting http://vip-be/wwgw/var/5 to vip-be:80
[proxy:debug]  proxy_util.c(2422): [client 172.26.130.177:59719] AH00947:
connected /wwgw/var/5 to vip-be:80
[proxy:debug]  proxy_util.c(2799): AH02824: HTTP: connection established with
172.26.110.165:80 (vip-be)
[proxy:debug]  proxy_util.c(2965): AH00962: HTTP: connection complete to
172.26.110.165:80 (vip-be)
[proxy:debug]  proxy_util.c(2175): AH00943: http: has released connection for
(vip-be)

Am I missing something or doing it wrong?
Thanks

ST

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to