mbd5882

Well-Known Member
Apr 30, 2005
59
0
156
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:
 

bmcgrail

Well-Known Member
Dec 8, 2003
83
0
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/
 

bmcgrail

Well-Known Member
Dec 8, 2003
83
0
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.