Stunnel , Websockets and Cpanel (React)

Fedot Serghei

Registered
Feb 2, 2015
2
0
1
Bucharest, Romania, Romania
cPanel Access Level
Root Administrator
Hello, I'm the owner of one VPS with cPanel and I have some problems implementing WebSockets under SSL(because we have Apache and we don't realy want to migrate to Nginx right now).

The problem is I need to add new lines in stunnel.conf
Code:
[websockets]
accept = 8443
connect = 8888
After research I found stunnel configuration file in /usr/local/cpanel/etc/stunnel/default/ and I added the lines.
Then then I run /usr/local/cpanel/etc/init/startstunnel with next output:
Code:
Waiting for (?^:^(?:stunnel$|stunnel-[0-9\.]+local)) to shutdown ... not running.
Using Native SSL support (stunnel not needed)
And then I run service cpanel status with next output:

Code:
cpsrvd (pid 21216) is running...
entropychat is stopped
[B]stunnel is stopped[/B]
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello :)

You could disable the following option under the "System" tab in "WHM Home » Server Configuration » Tweak Settings":

"SSL Support for cPanel daemons (no stunnel)"

Thank you.