Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

How to configure WSS working with HTTPS? #35

Open
@chantrea

Description

Hi here are my steps
My Apache is 2.4.34 on Centos server
in my route
$socket->route('/myclass', new MyClass(), ['*']);
<VirtualHost *:443>
//All Certificates and domain is working fine here.
SSLProxyEngine On
ProxyPreserveHost On
ProxyRequests Off
ProxyPass /wss/ ws://dev.domain.com:2000/ retry=0 keepalive=On
ProxyPassReverse /wss/ ws://dev.domain.com:2000/ retry=0

In client JavaScript Code
pace.min.js:2 WebSocket connection to 'wss://dev.domain.com/wss/myclass' failed: Error during WebSocket handshake: Unexpected response code: 503

And It is working find in localhost with ws://localhost:2000/myclass
Without HTTPS

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions