Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Oct 2004
    Posts
    65

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

    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

  2. #2
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    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.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  3. #3
    Member
    Join Date
    Oct 2004
    Posts
    65

    Default RE: Extra site security

    Quote Originally Posted by PWSowner
    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?

  4. #4
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    I'm pretty sure that would be built into the raw code and not changeable.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  5. #5
    Member
    Join Date
    Oct 2004
    Posts
    65

    Default

    Quote Originally Posted by PWSowner
    I'm pretty sure that would be built into the raw code and not changeable.

    Who would you direct correspondance regarding this question to?

  6. #6
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    You can contact them at billing at cpanel .net.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  7. #7
    Member
    Join Date
    Apr 2003
    Posts
    21

    Default

    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.

  8. #8
    Member
    Join Date
    Oct 2004
    Posts
    65

    Default Missunderstood

    Quote Originally Posted by Almighty
    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

  9. #9
    cPanel Partner NOC cPanel Partner NOC Badge shashank's Avatar
    Join Date
    Apr 2003
    Posts
    146

    Default

    whatever you do, cpanel will add back /cpanel entries to httpd.conf with a cpanel update again.
    Shashank Wagh.
    Systems Administrator.
    http://www.shashank.net

  10. #10
    cPanelBilly
    Guest

    Default

    Quote Originally Posted by kickedmydog
    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.

Similar Threads & Tags
Similar threads

  1. Canonical redirect of www to non www for the same domain
    By Vince778 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 08-24-2011, 03:22 AM
  2. Push on cpanel the www.domain.com to domain.com
    By ASTRAPI in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-11-2011, 07:17 PM
  3. IP Change Disabled WWW. in Domain
    By ipchanger in forum New User Questions
    Replies: 5
    Last Post: 08-05-2009, 06:51 AM
  4. Replies: 2
    Last Post: 07-19-2006, 09:07 AM
  5. Change site IP, www works without www does not
    By asmithjr in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 10-11-2005, 07:04 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube