How to allow users to access to WHM or cPanel without entering the port?

alphareseller

Member
Jun 26, 2011
7
0
51
Hi,

My current setting for WHM/cPanel will require users to enter port number (2086/2087 or 2082/2083) when the accessing to WHM/cPanel. Is there any way that I can remove the port from the URL (https://whm.mysite.com)?

Thank you very much for your help!!
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
If you have proxy subdomains set in WHM > Tweak Settings, it should work to use whm.domain.com or cpanel.domain.com automatically. Here are the settings:

Proxy subdomains [?]
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)

Proxy subdomain creation [?]
Automatically create cpanel, webmail, webdisk and whm proxy subdomain DNS entries for new accounts. When this is initially enabled it will add appropriate proxy subdomain DNS entries to all existing accounts. (Use /scripts/proxydomains to reconfigure the DNS entries manually)
These simply need to be enabled to "On" in that area, then Tweak Settings saved for those changes.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
Are you receiving a specific error message when attempting to access cPanel or WHM via the proxy subdomains option?

You can check the Apache error log while attempting to access them to find an exact error message:

Code:
/usr/local/apache/logs/error_log
Thank you.
 

alphareseller

Member
Jun 26, 2011
7
0
51
the error log is showing below message:

[Tue Jul 05 17:41:29 2011] [error] [client xx.xxx.xx.xxx] Invalid method in request \x16\x03\x01
[Tue Jul 05 17:41:29 2011] [error] [client xx.xxx.xx.xxx] File does not exist: /usr/local/apache/htdocs/501.shtml