The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    16
    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:
    16
    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:
     
  3. rs-freddo

    rs-freddo Well-Known Member

    Joined:
    May 13, 2003
    Messages:
    832
    Likes Received:
    1
    Trophy Points:
    18
    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:
     
  4. mmkassem

    mmkassem Well-Known Member

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

    cPanel.net Support Ticket Number:
     
  5. SS ToXiC

    SS ToXiC Member

    Joined:
    Jul 6, 2003
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    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