This tutorial will show you how to accomplish https connections when going to servername/whm or /cpanel for those who may still be using the insecure ways to login to WHM and CPanel forcing a secure connection for all users.
Step 2: Edit the file pico /etc/httpd/conf/httpd.conf
Step 3: Search for the line: Ctrl+W then ScriptAlias /cpanel /usr/local/cpanel/base/redirect.cgi
Step 4: Edit the line to show the following: ScriptAlias /cpanel /usr/local/cpanel/base/sredirect.cgi (simply change the redirect.cgi to sredirect.cgi)
Step 5: Search for the line: Ctrl+W then ScriptAlias /whm /usr/local/cpanel/base/whmredirect.cgi
Step 6: Edit the line to show the following: ScriptAlias /whm /usr/local/cpanel/base/swhmredirect.cgi (simply change the whmredirect.cgi to swhmredirect.cgi)
Step 7: Save and exit using the following: Ctrl+X then press Y
Step 8: Restart Apache to have changes take effect: service httpd restart
Get professional help with your configuration, script installation or server issue. Learn how we can help you with any server problem and make your server run like new. Professional staff will contact you, after submitting a quote request, by phone or email.
Rate this Article :
1
2
3
4
5
6
7
8
9
10
Poor
Excellent
Discuss this article with others in our new hosting forums
Comments / Feedback
Duntuk
excellent article...
simple and straight to the point...
Jodawi
Should probably also change /controlpanel and other such aliases
anon
newer versions of cpanel already have this feature if you enable it in whm
WebHostGear Hire an Expert - NEW! Let us improve your servers performance, find that spammer and take care of that kernel upgrade. Hire us to help with any tutorials listed on the site or any other services needed. Get your free, NO obligation quote now
Our site offers free hosting tutorials, cpanel tutorial, web hosting news, shell commands, running a web hosting business, dedicated guides, linux tutorial, apache install, home web server, web server guide, ssh commands, dedicated servers, DNS nameservers, chkrootkit, apf firewall, exim configuration, server compromised, cron backup solution, ftp backup script
excellent article... simple and straight to the point...