Mohanad Kaleia

Idea for a cause

How to configure Ratchet with SSL

If you are using Apache web server (2.4 or above), enable these modules in httpd.conf file :


Add this setting to your httpd.conf file

ProxyPass /wss2/ ws://

Use this URL in your JavaSscript call when you want a WSS connection:

var ws = new WebSocket("wss://");

Restart Apache web server and make sure that your Ratchet worker (web socket connection) is open before applying the settings (telnet hostname port).



Post a comment

  • *