Question

Accessing WHM and cPanel on subdomain

I am new at running my own server, but have successfully installed WHM and cPanel and can access them through https://myiP:2087 My question is…is there a way to give it a simpler address, such as whm.mydomain.com?

Thanks for any help!


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

cPanel & WHM contains a feature that does what you are asking. The feature is called ‘Proxy Sub Domains’. Here’s how to enable it:

  1. Login to WHM with root level access
  2. Click Tweak Settings
  3. Go to the Domains section
  4. Enable Proxy Sub Domains

More information is available in the documentation: https://documentation.cpanel.net/display/1152Docs/Tweak+Settings+-+Domains#TweakSettings-Domains-Proxysubdomains

Note: since cPanel & WHM installs the Apache web server, you already have everything you need to access the cPanel & WHM service via ports 80 and 443.

To the best of my knowledge, the cPanel/WHM daemon does not restrict access to a particular name but instead respond to any name pointed at the droplet. So, handling the name is juts a matter of pointing the name to your droplet.

Translating port 2087 to port 80 or 443 (what is used if no port is specified) would require something like a second server running nginx as a reverse proxy since port 80 and 443 on your droplet are already being used by your public web services.