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.

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:
    60
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Manchester, 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:
     
  2. mbd5882

    mbd5882 Well-Known Member

    Joined:
    Apr 30, 2005
    Messages:
    60
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Manchester, United Kingdom
    cPanel Access Level:
    Root Administrator
    Anyone know?
    I really need this :(
     
  3. bmcgrail

    bmcgrail Well-Known Member

    Joined:
    Dec 8, 2003
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    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:
    60
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Manchester, 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
     
  5. bmcgrail

    bmcgrail Well-Known Member

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