Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    4

    Default Diverting :2082, :2083 and cpanel login pages to a custom login page is this possible

    I have a question. I have created a remote login page for my website and want the users of the hosting services I provide to login through this web page and not yourdomainname.com:2082 or yourdomainname.com/cpanel. Is there a way of diverting yourdomainname.com:2082, :2083 and yourdomainname.com/cpanel to my remote login page so the user cannot view :2082, :2083 and cpanel?

  2. #2
    Integration Developer cPanelDavidN's Avatar
    Join Date
    Dec 2009
    Location
    Houston, TX
    Posts
    525

    Default Re: Diverting :2082, :2083 and cpanel login pages to a custom login page is this poss

    Hi Tom,

    I think the simple answer to you question is no. The long answer is maybe. The difference is based on what exactly you're trying to accomplish and what level of access you have to the cPanel system.

    1) cPanel & WHM ports, AFAIK, can not be changed.
    2) I'm not super familiar with our Apache configuration, but a quick look seems to indicate that if you have root, you can redirect /cpanel to your own destination
    - in httpd.conf the default redirects are like so:
    Code:
    ScriptAliasMatch ^/?cpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
    - you should be able to overwrite this by placing your own value in "/usr/local/apache/conf/includes/pre_virtualhost_global.conf"
    - DO NOT modify httpd.conf directly as your changes will like be revered during cPanel updates
    - DO NOT modify redirect.cgi as your changes will like be revered during cPanel updates

    3) The most common way to present a limited or custom cPanel interface for customers is to have a custom cPanel theme. In this respect, the customer will always be presented with the set of actions you offer. You'd need root to implement your own theme. Another way would be to create a cPanel or WHM plugin that has its own user list (or ties indirectly into cPanel authentication) -- your plugin works as an proxy application to the underlying cPanel features and enforces it's own ACL.

    4) if you only have a cPanel account you're probably going to be limited by what your Hosting Provider provides you.

    5) There are several threads around the same ideas that you mention, try searching around the forum and googling for similar answers Hosting Provider specific forum sites. A quick search yielded this one custom login page... . It kinda goes off on a tangent, but the beginning touches on what you're asking. You may also want to look at our branding documentation which talks about custom themes and whatnot: http://docs.cpanel.net/twiki/bin/vie...dBrandingGuide


    If I've missed the mark, let me and provide more specific details about the kinda of services you offer and what type of cPanel account/access you have (ie, 'it is a vps and you have root', 'have reseller', 'just a cPanel account', etc).

    Regards,
    -DavidN
    David Neimeyer
    Integration Developer

    sdk.cpanel.net
    APIs: XML-API API1 & API2
    Check Out: Developer Downloads Integration Blog
    Need Support? Support Ticket Developer Forum Feature Request

Similar Threads & Tags
Similar threads

  1. Multiple custom login pages
    By mweller in forum Themes and Branding
    Replies: 1
    Last Post: 08-08-2011, 12:48 PM
  2. Firefox - Generic Popup Login Box instead of cPanel/WHM login pages
    By Nathan D. in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-01-2009, 08:27 AM
  3. custom login page...
    By dipp02 in forum cPanel Developers
    Replies: 14
    Last Post: 11-01-2008, 10:25 AM
  4. Cpanel custom login fail page redirect
    By boy143878 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-31-2008, 08:28 PM
  5. I updated cpanel and now can't login on 2082/2083
    By concreteman in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 06-25-2003, 01:54 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube