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!

Mod Alias - Cpanel Dir

Discussion in 'General Discussion' started by mbd5882, Jun 6, 2006.

  1. mbd5882

    mbd5882 Well-Known Member

    Joined:
    Apr 30, 2005
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    United Kingdom
    cPanel Access Level:
    Root Administrator
    Does anyonw know how i can change the alias /cpanel and /whm for just 1 of my IP's.
    I have my own custum control panel on there and wish for it to go there instread of the real cpanel and whm.
    so http://www.domain.com/cpanel will go to my own control panel
    so http://www.domain.com/whm < I want to remove this

    I want this on all accounts created manually be editing the httpd on a dedi ip to work like this. If i cant be done, then how may i remove it?

    If anyone doesnt get me ill explain further.
    :cool:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. mbd5882

    mbd5882 Well-Known Member

    Joined:
    Apr 30, 2005
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    United Kingdom
    cPanel Access Level:
    Root Administrator
    Anyone know?
    I really need this :(
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. bmcgrail

    bmcgrail Well-Known Member

    Joined:
    Dec 8, 2003
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    156
    You could disable /cpanel and /whm on only that IP by blocking access to ports
    2082, 2083, 2086, and 2087 in your firewall.

    Then add Alias /admin or something else to call your control panel in httpd.conf. This could be global or in each of the virtual hosts. Just make sure another global /admin alias or scriptalias doesn't exist.

    Alias /admin /home/username/www/controlpanel/
     
  4. mbd5882

    mbd5882 Well-Known Member

    Joined:
    Apr 30, 2005
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    United Kingdom
    cPanel Access Level:
    Root Administrator
    I dont want to disable access to cpanel, just change the location of it to my own cpanel fgfor 1ip
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. bmcgrail

    bmcgrail Well-Known Member

    Joined:
    Dec 8, 2003
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    156
    IMO It would be easier to make the link not be /cpanel.

    The only way I can think to achieve what you are looking for is to completely rewrite /usr/local/cpanel/cgi-sys/redirect.cgi

    And off the top of my head I'm not sure how you would go about capturing the difference between redirecting to cpanel vs your control panel. Maybe a dnslookup and if site = ipaddress goto custom control panel.
     
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