Is there a way to change the default ports that cpanel and whm run on? In my searching, I see that in the cpanel.config file, the cpanel port can be changed but I could not find anything about whm. Thanks.
Is there a way to change the default ports that cpanel and whm run on? In my searching, I see that in the cpanel.config file, the cpanel port can be changed but I could not find anything about whm. Thanks.
Changing of the cPanel port is NOT recommended and has the potential to break things... oh ya, and it's not supported either.
At this time, there is no method by which to change the default ports. However, if your users are having firewall issues and you are running cPanel 11.23 or later, they can make use of the reverse proxy (cpanel.example.com and whm.example.com where example.com is their domain and you have mod_proxy installed on your Apache server).
Hi David. The new cPanel proxy feature is working great for all new customers that I create. Can you tell me how to enable it for an existing customer?
- Scott
To do this, ensure this setting is checked:
Also, just verify the following setting is also checked:Code: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)
Then click "save" at the bottom of the Tweak Settings page.Code: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)
Thanks for the quick reply. It seems that all I had to do was to edit the customer's existing DNS zone, and create a DNS "A record" entry for "cpanel" for the existing customer, and point it to the IP of the server, and it instantly started working for them.
However, in Tweak Settings, indeed I have this checked:
"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)" (added red for emphasis)
I do not believe that this is working, as my existing customers did not get the correct DNS entries... as evidenced by me having to manually create it for the one customer that wanted it.
But maybe I don't understand the last part (Use /scripts/proxydomains to reconfigure the DNS entries manually) -- what is that about?
- Scott
You may want to have our technical analysts take a look at that (see link in my signature)
That's if the user had a pre-existing webmail. subdomain that is of no relation to our recently added reverse proxy functionality. If the user removes these or you want to override their configuration (not necessarily a good idea if they're actively using cpanel. webmail. or whm. for some reason) - that's what that script is for.
[b]/scripts/proxydomains[b] allows one to setup the Proxy Access on any arbitrary domain hosted on the server. The default settings only install the necessary records on the primary domain of an account. /scripts/proxydomains allows one to perform the same on Addon, Parked and Sub domains.