Disallow /cpanel, /webmail to be redirected to ssl/tls ports (2083, 2096)
If you are getting certificate errors while you are trying to visit http://domain/cpanel, the most probable reason is that the error is regarding the issuer. That is most people usages self-signed SSL certificates for the services. The error is not a big issue comparing to the benefits of using secured over Non-secured connections. However, for some reason, if you need to skip this page and you don’t want to redirect to SSL connection, you can do so by simple modification in WHM’s tweak settings.
- Login to WHM as root
- Click Tweak Settings from leftside menu
- Go to Redirection section of the tweak settings page.
- Uncheck the check box beside the line:
Always redirect users to the ssl/tls ports when visiting /cpanel, /webmail, etc. - Hit the Save button at the end of the page.
That’s it.You will no more be redirected to secure connection and won’t the see the certificate error anymore.
From Shell:
You can do the same from shell.
- SSH to server as root
- Open the file /var/cpanel/cpanel.config in your favorite command line editor. For example:
vi /var/cpanel/cpanel.config - Find the line alwaysredirecttossl
- Set its value to 0 that is alwaysredirecttossl=0
- Save and exit (:x)
You are done.
Additional Tips:
If you are always redirected to hostname of server while you are trying to login to cPanel and whm, you may also stop that from happening by selecting Original Domain Name under the label of When visiting /cpanel or /whm or /webmail WITHOUT SSL, you can choose to redirect to:
a WordPress rating system
Related posts:
- Installing PostgreSQL on cPanel/WHM Server
- cPanel-WHM Packages :: Modify default dedicated IP setting
- SSL Certificate Installation, Step by Step
- Updating Apache using Cpanel EasyApache
- How to enable stats from WHM?
I am very impressed with the article I have just read. I wish the author of controlpanelblog.com can continue to provide so much useful information and unforgettable experience to controlpanelblog.com readers. There is not much to say except the following universal truth: Everyone had an uncle who tried to steal their nose. I will be back.
a WordPress rating system
It is also easy to backup and transfer all your websites from one server to another server if you have cPanel installed**;
a WordPress rating system