Bug 64744 - Websocket Wss is not working for Jetty port 8443 using LoadBalancer menthod
Summary: Websocket Wss is not working for Jetty port 8443 using LoadBalancer menthod
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_proxy_wstunnel (show other bugs)
Version: 2.4.46
Hardware: PC Linux
: P2 major (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-16 22:56 UTC by Chaitanya Kiran
Modified: 2020-09-17 04:23 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chaitanya Kiran 2020-09-16 22:56:22 UTC
Hi Team,

I am Trying to configure the Websockets using wss and which is not working  expected in the apache 2.4.46 version. But same application is working fine with Nginx.

I have tried the Rewirte configurations also but no hope.

Please find my apache configutaion using balancer

<VirtualHost xx.xx.xx.xx:443>
    ServerName xyz.com
    RemoteIPHeader X-Forwarded-For
    RemoteIPHeader X-Real-IP
    SSLEngine on
    SSLProxyEngine On
    SSLProxyVerify none
    AllowEncodedSlashes On
    ProxyTimeout 300

    <Proxy balancer://https-balancer>
                   BalancerMember https://xx.xx.xx.xx:8443 route=node1 loadfactor=1
                   BalancerMember https://xx.xx.xx.xx:8443 route=node2 loadfactor=1
                   ProxySet lbmethod=byrequests
                   ProxySet stickysession=JSESSIONID
            </Proxy>
            <Proxy balancer://wss-balancer>
                   BalancerMember wss://xx.xx.xx.xx:8443 route=node1 loadfactor=1
                   BalancerMember wss://xx.xx.xx.xx:8443 route=node2 loadfactor=1
                ProxySet lbmethod=byrequests
            </Proxy>


    ###### WSS-Proxy ############
    ProxyPass /ws balancer://wss-balancer/
    ProxyPassReverse /ws balancer://wss-balancer/

    ###### STICKY-SESSION ############
    ProxyPass / balancer://https-balancer/ 
    ProxyPassReverse / balancer://https-balancer/ 

</VirtualHost>

Websocket request : wss://xyz.com/

Apache logs iam getting this error :

 "GET / HTTP/1.1" 400 34 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36" 

if i use the Request : wss://xyz.com/ws

Apache log : 

"GET /ws HTTP/1.1" 500 527 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36" 

Please verify this issue and provide the solution asap. 
Thanks&Regards,
Chaitanya Kiran PVN
Comment 1 bubbly 2020-09-17 04:23:59 UTC
hello