How to change www.domain.com/cpanel to /something_else

kickedmydog

Well-Known Member
Oct 28, 2004
65
0
156
Hello,

Been using Cpanel for almost one year and have enjoyed the ease of use so far with some minor hiccups along the way.

I have followed all the security advice and have everything pretty locked down but I want one last thing to have complete piece of mind.

Does anyone know how to change the ports and the /cpanel & /whm to something different ?
This would be a very good step to becoming very secure.


Thanks,

Brad
 

PWSowner

Well-Known Member
Nov 10, 2001
2,901
4
343
ON, Canada
To change the /cpanel and /whm, you want to edit the httpd.conf file, but each time you add a new account, that part gets rewritten. You would need to use a postwwwacct script to rewrite the changes you want.
 

kickedmydog

Well-Known Member
Oct 28, 2004
65
0
156
RE: Extra site security

PWSowner said:
To change the /cpanel and /whm, you want to edit the httpd.conf file, but each time you add a new account, that part gets rewritten. You would need to use a postwwwacct script to rewrite the changes you want.

Thanks for the reply. Do you think it would be a good idea to do that?

Would it be easier just to find out where the varibles for cpanel and whm are and change them so next time an account is created it is automaticly set to the new directory?
 

Almighty

Member
Apr 20, 2003
20
0
151
Hi,

Couldnt you just add a Alias in the httpd.conf to redirect to either /cpanel or the ports themselves. That way you dont need to worry about changing the wwwacct code and people can still access it at /cpanel.
 

kickedmydog

Well-Known Member
Oct 28, 2004
65
0
156
Missunderstood

Almighty said:
Hi,

Couldnt you just add a Alias in the httpd.conf to redirect to either /cpanel or the ports themselves. That way you dont need to worry about changing the wwwacct code and people can still access it at /cpanel.
Goal was to do away with domain.com/cpanel to something else that you wanted to make it more secure so robot hackers can't find cpanel easily....

For example if you had a company called kickingdogshosting and you wanted the cpanel to be accessed by www.mydomain.com/kickedmydog
 
C

cPanelBilly

Guest
kickedmydog said:
Goal was to do away with domain.com/cpanel to something else that you wanted to make it more secure so robot hackers can't find cpanel easily....

For example if you had a company called kickingdogshosting and you wanted the cpanel to be accessed by www.mydomain.com/kickedmydog
all you are speaking of is an alias that redirects to a port. The ports cannot change so anything you are doing here will not stop what you want.