|
|
@ -26,7 +26,7 @@ To host this online, you'll need to set up a few things: |
|
|
|
- Enable mod_proxy_wstunnel.so |
|
|
|
- Enable mod_proxy_wstunnel.so |
|
|
|
- Open httpd.conf and add this: __ProxyPass /wss2/ ws://YOUR_SERVER_IP_OR_DOMAIN:PORT/__ |
|
|
|
- Open httpd.conf and add this: __ProxyPass /wss2/ ws://YOUR_SERVER_IP_OR_DOMAIN:PORT/__ |
|
|
|
|
|
|
|
|
|
|
|
e.g. _ProxyPass /wss2/ws://www.abc.xyz:8080/_ |
|
|
|
e.g. _ProxyPass /wss2/ ws://www.abc.xyz:8080/_ |
|
|
|
- From your front-end, you can connect like this: |
|
|
|
- From your front-end, you can connect like this: |
|
|
|
|
|
|
|
|
|
|
|
_const wsChat = new WebSocket("ws://YOUR_SERVER_IP_OR_DOMAIN:PORT/wss2/comm");_ |
|
|
|
_const wsChat = new WebSocket("ws://YOUR_SERVER_IP_OR_DOMAIN:PORT/wss2/comm");_ |
|
|
@ -41,4 +41,4 @@ To host this online, you'll need to set up a few things: |
|
|
|
The configurations will be loaded on Apache start-up. |
|
|
|
The configurations will be loaded on Apache start-up. |
|
|
|
- Once you put the Proxypass directive there, restart your server and there you go. |
|
|
|
- Once you put the Proxypass directive there, restart your server and there you go. |
|
|
|
|
|
|
|
|
|
|
|
This [answer on Stack Overflow](https://stackoverflow.com/questions/16979793/php-ratchet-websocket-ssl-connect) should be helpful. |
|
|
|
This [answer on Stack Overflow](https://stackoverflow.com/a/28393526/4522890) should be helpful. |
|
|
|