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.

Access WHM using http://whm.domain.com

Discussion in 'General Discussion' started by ccccanada, May 28, 2010.

  1. ccccanada

    ccccanada Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    279
    Likes Received:
    0
    Trophy Points:
    16
    Can you formulate a complete question when asking for help?
     
  2. proloy03

    proloy03 Member

    Joined:
    May 14, 2010
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Can any one help??
     
  3. proloy03

    proloy03 Member

    Joined:
    May 14, 2010
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    The problem is clear from the topic itself...

    Anyways for those who cannot understand:

    I want to access WHM (which is accessed generally by http://domain.com:2086) using the url http://whm.domain.com. I heard that it works at place here 2086 port is blocked. Can anyone help??

    Thanks
     
  4. vheeds

    vheeds Member

    Joined:
    Feb 22, 2010
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Hello Proloy03,

    I understand your concern that you want to access whm through Proxy when behind a firewall. JAP is a proxy that allows you to access cPanel,whm and webmail through port 80. It is compatible with the latest version of cPanel,whm and webmail uses the CURL library to optimize performance.

    Download the JAP from : Browse JAP4CPANEL Files on SourceForge.net

    INSTALL instructions:


    Create Subdomains

    * Use a workstation that can access cPanel.
    * Open cPanel, under Domains, select Subdomains
    cpanel2
    cpanel3
    * Create a subdomain for cPanel. Type cpanel in the Subdomain box and press the create button. This will create cpanel.yourdomain.com.
    * Create a subdomain for webhostmanager. Type whm in the Subdomain box and press the create button. This will create whm.yourdomain.com.
    * Create a subdomain for webmail. Type webmail in the Subdomain box and press the create button. This will create webmail.yourdomain.com.


    Install the JAP4CPANEL proxy

    * Unzip JAP4CPANEL-x.y.z.zip and upload TMP, .htaccess, jap.index.php, jap.php4.php and jap.php5.php to each directory associated with each new subdomain (for example: /public_html/cpanel/, /public_html/whm, /public_html/webmail, /wwwroot/webmail, /www/webmail, etc.)
    * Open and edit jap.index.php found in each of the three directories. Change the following line for each directory accordingly:
    For cPanel: Change the domain and port "$jap = new Jap('http://j4php.org:2082');" to "$jap = new Jap('http://yourdomain.com:2082');"
    For whm: Change the domain and port "$jap = new Jap('http://j4php.org:2086');" to "$jap = new Jap('http://yourdomain.com:2086');"
    For webmail: Change the domain and port "$jap = new Jap('http://j4php.org:2095');" to "$jap = new Jap('http://yourdomain.com:2095');"
    * Save jap.index.php
    * Change permissions (chmod) of TMP for each directory to 777 (for example: /public_html/cpanel/TMP/, /public_html/whm/TMP/, /public_html/webmail/TMP/,)


    Accessibility


    * To access cPanel, open http://cpanel.yourdomain.com
    * To access whm, open http://whm.yourdomain.com
    * To access webmail, open http://webmail.yourdomain.com
     
  5. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    The easier way is to add mod_proxy module on your server using easyapache. Compile Apache either using the easyapache script OR from WHM and select the module "proxy" under the list of Apache modules.

    This will enable the module on your server, however you will have to add A records for cpanel/whm/webmail/webdisk in each DNS zone of the domain. The record should look like

    cpanel IN A yourserverip
    whm IN A yourserverip
    webmail IN A yourserverip
    webdisk IN A yourserverip

    This way you will be able to access any of the above with the way you mentioned.
     
  6. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    This feature is built into cPanel

    As long as mod_proxy is built into Apache (you can check by running EasyApache; mod_proxy is listed in step #6, "Exhaustive Options List"), then you should only need to select the following option in Main >> Server Configuration >> Tweak Settings: "Add proxy VirtualHost to httpd.conf to automatically redirect unconfigured cpanel, webmail, webdisk and whm subdomains to the correct port (requires mod_rewrite and mod_proxy)."

    mod_rewrite is built into Apache by default on a cPanel server, so all you need to do is make sure mod_proxy is built into Apache, and make sure that each domain has a webmail, whm and/or cpanel A record in its DNS zone.

    If you select "Automatically create cpanel, webmail, webdisk and whm proxy subdomain DNS entries for new accounts," also in Main >> Server Configuration >> Tweak Settings, the needed A records will automatically be added to accounts' DNS zones when you create accounts. If you host your DNS externally, i.e. not on the cPanel server, you will still need to manually create A records in the external DNS service.
     
Loading...

Share This Page