Friday, August 26, 2011

Disallow /cpanel, /webmail to be redirected to ssl/tls ports (2083, 2096)

December 4, 2009 by  
Filed under cPanel


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:

GD Star Rating
a WordPress rating system
Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Related posts:

  1. Installing PostgreSQL on cPanel/WHM Server
  2. cPanel-WHM Packages :: Modify default dedicated IP setting
  3. SSL Certificate Installation, Step by Step
  4. Updating Apache using Cpanel EasyApache
  5. How to enable stats from WHM?


2 Responses to “Disallow /cpanel, /webmail to be redirected to ssl/tls ports (2083, 2096)”
  1. payday loans says:

    I am very impressed with the article I have just read. I wish the author of can continue to provide so much useful information and unforgettable experience to 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.

    GD Star Rating
    a WordPress rating system
  2. Isaac Harrison says:

    It is also easy to backup and transfer all your websites from one server to another server if you have cPanel installed**;

    GD Star Rating
    a WordPress rating system

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!
Click here to cancel reply.