Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

www.website.com/cpanel redirection to https:// instead of http://

Discussion in 'General Discussion' started by I-Web, Jul 14, 2003.

  1. I-Web

    I-Web Well-Known Member

    Joined:
    Jul 7, 2003
    Messages:
    138
    Likes Received:
    0
    Trophy Points:
    166
    Hi all, im trying to make my cpanel only operate on secure connection,

    is there a way to make it when someone goes to www.theredomain.com/cpanel that it redirects it to the https login???

    Thanks in advance

    cPanel.net Support Ticket Number:
     
  2. mmkassem

    mmkassem Well-Known Member

    Joined:
    Oct 21, 2002
    Messages:
    390
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Egypt
    delete /usr/local/cpanel/base/redirect.cgi
    and make redirect.cgi a sym. link for sredirect.cgi

    and lock redirect.cgi so Cpanel can not edit/replace it.

    I believe that's the best solution.

    cPanel.net Support Ticket Number:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. rs-freddo

    rs-freddo Well-Known Member

    Joined:
    May 13, 2003
    Messages:
    832
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    Australia
    cPanel Access Level:
    Root Administrator
    a better solution is to edit httpd.conf and change the "/cpanel" redirect from redirect.cgi to sredirect.cgi

    don't have to lock stuff that way.

    cPanel.net Support Ticket Number:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. mmkassem

    mmkassem Well-Known Member

    Joined:
    Oct 21, 2002
    Messages:
    390
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Egypt
    Cpanel sometimes edits httpd.conf so locking a sym. link file is better.

    cPanel.net Support Ticket Number:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. SS ToXiC

    SS ToXiC Member

    Joined:
    Jul 6, 2003
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    151
    you can do what i did..

    I added a line in the httpd.conf like: Include /some/path/redirects.conf

    then in redirects.conf i added:

    Redirect /cpanel https://secure.domain.com:2083
    Redirect /whm https://secure.domain.com:2087

    and so on...

    i added the line to the httpd.conf toward the top so that what cpanel adds will not have a chance to take effect.

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice