Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Sep 2008
    Posts
    5

    Default Problem with non SSL login to WHM, CPANEL and WEBMAIL

    Folks, I have this issue.

    I followed FAQ to disable non SSL login to whm / cpanel and webmail:

    "Under 'Tweak Settings' in WHM, make sure the following option is selected:
    Always redirect users to the ssl/tls ports when visiting /cpanel, /webmail, etc"


    But I can login on default http connection without SSL, yet.

    There is another tweak that overrides this option?

    I`m using a wildcard SSL cert and is configured to all services in SSL Host like *.domain.com

  2. #2
    Member
    Join Date
    Aug 2002
    Posts
    1,118

    Default

    How are you logging on non-securely?

    Using that option in tweak setting won't prevent someone from accessing the cPanel apps directly on the insecure ports (2082, 2085, 2095).

    So if someone is visiting their control panel by specifically going to:

    http://theirdomain.com:2082

    Then this will work.

    If you don't want the insecure ports to work, your best option is to use a firewall and block those ports. Then reminding customers that they need to use http://theirdomain.com/cpanel for accessing their control panel.

  3. #3
    Member
    Join Date
    Sep 2008
    Posts
    5

    Default

    I have configured *.domain.com IN A cpanel_server on DNS, so:

    http://cpanel.domain.com enters without SSL
    https://cpanel.domain.com enters with SSL

  4. #4
    Member
    Join Date
    Aug 2002
    Posts
    1,118

    Default

    This is using the cPanel proxy setup.

    I don't recommend setting this up for each individual account on a server. Instead I recommend setting up a single cpanel subdomain account on the server and installing a certificate for that account. Then telling all of your users to access their control panel through this subdomain account. Its a bit easier to manage in my opinion.

    For more information on this see my post:

    http://forums.cpanel.net/showpost.ph...3&postcount=94

    Otherwise, you would need to discuss this with the cPanel developers. Perhaps log some type of enhancement request.

  5. #5
    Member
    Join Date
    Aug 2002
    Posts
    1,118

    Default

    I just realized that the post I referenced was for webmail. This can still work for cpanel you just need to use a cpanel subdomain account and instead of:

    Code:
    http://127.0.0.1:2095/$1
    use:

    Code:
    http://127.0.0.1:2082/$1
    Port 2095 is for Webmail.

    Port 2082 is for cpanel.

    Port 2085 is for Webhost Manager.

  6. #6
    Member
    Join Date
    Sep 2008
    Posts
    5

    Default

    Thanks a lot, but the problem continues, I was reading httpd.conf configuration and put these changes:

    # CPANEL/WHM/WEBMAIL/WEBDISK PROXY SUBDOMAINS
    <VirtualHost 70.38.37.200:80 70.38.37.200:443 *>
    ServerName pi.fribits.com
    ServerAlias cpanel.* whm.* webmail.* webdisk.*
    DocumentRoot /usr/local/apache/htdocs
    ServerAdmin soporte@fribits.com
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^cpanel\. [NC]
    RewriteRule ^/(.*) https://cpanel.fribits.com/$1


    But enters in a loop, I need that all cpanel.domain have to go to cpanel.fribits.com, but with these sentences are being looped.

    UseCanonicalName Off
    </VirtualHost>

  7. #7
    Member
    Join Date
    Aug 2002
    Posts
    1,118

    Default

    Your entering an infinite loop because you are telling the server to redirect https://cpanel.fribits.com to https://cpanel.fribits.com

    I don't know how you have this wildcard SSL set up. I have very limited experience with wildcard SSLs.

    For one thing, you don't need to edit the httpd.conf file manually. Changes will get overwritten.

    How I have done this in the past with a wildcard SSL was to create separate accounts.

    cpanel.fribits.com
    whm.fribits.com
    webmail.fribits.com

    Each with their own IP address. Each set up just like they were separate accounts.

    Then install the certificate for cpanel.fribits.com using the wildcard SSL certificate.

    Then install the certificate for whm.fribits.com using the wildcard SSL certficate.

    etc.

    Then follow the instructions as laid out in the thread I referenced above.

    In order for you to do this, it looks like you will have to unpark cpanel.fribits.com, whm.fribits.com, webmail.fribits.com, and webdisk.fribits.com for this to work (or however the line ServerAlias cpanel.* whm.* webmail.* webdisk.* came to be in your config file -- again, limited experience working with wildcard certificates)

Similar Threads & Tags
Similar threads

  1. Replies: 8
    Last Post: 11-09-2011, 08:46 PM
  2. SSL for WHM/CPANEL/WEBMAIL
    By tarik916 in forum Security
    Replies: 2
    Last Post: 04-29-2010, 09:04 AM
  3. cPanel/WHM/WebMail login box to your site
    By sfera in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-20-2005, 02:40 PM
  4. Which SSL cert does WHM, cPanel and Webmail use?
    By d-woo in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-26-2004, 05:37 PM
  5. SSL for cpanel/WHM login
    By s3kk3y in forum cPanel and WHM Discussions
    Replies: 12
    Last Post: 02-17-2003, 11:15 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube