How to install SSL to other port, like 8001 for using with Secure Web Sockets?

SelyukCorp

Registered
Mar 9, 2010
3
0
51
Hello,
How to install SSL to other port, like 8001 for using with Secure Web Sockets? This is HTTP protocol, but instead Apache port listening my own daemon.
 

LostNerd

Well-Known Member
Mar 12, 2014
258
12
18
Hastings, East Sussex, UK
cPanel Access Level
Root Administrator
Twitter
Via SSH..
Code:
cd /var/cpanel
Then:
Code:
sudo vi cpanel.config
After that:
Change "apache_ssl_port=0.0.0.0:443" to "apache_ssl_port=0.0.0.0:new_port" (Replace new_port with your port number)

Finally, run:

Code:
sudo /usr/local/cpanel/whostmgr/bin/whostmgr2 --updatetweaksettings
I think this will work. I've never needed to do it, personally.

Good luck.
 

cPanelMichael

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

You could also make this change via Web Host Manager. Browse to the "System" tab in "WHM Home » Server Configuration » Tweak Settings" and edit the port for the following option:

"Apache SSL port"

Per it's description:

The port (e.g. 443) on which Apache listens for HTTPS connections. An IP address may precede the port number, separated by a colon (“:”). Specifying a specific IP will prevent Apache from listening on all other IPs.
Thank you.