I have this (pseudo) domain setup, and hope to do any configuration via cPanel and/or WHM.
myclient.com – this hosts a development site and there is no public DNS for it yet (by choice)
mycompany.com – this is my company’s domain name and it’s publicly accessible.
myclient.mycompany.com – this is the domain I want to use to preview the myclient website during development.
Edit for clarity: All 3 are on the same server and same IP.
So, is it possible to point that subdomain (myclient.mycompany.com) to the webroot of myclient.com using cPanel or WHM?
I’ve looked at addon domains, redirects and parked domains but each of them can only relate to own account, or cannot be used with another domain if it’s managed by the same server.
Any idea? :/
If your cPanel main domain is mycompany.com just create an addon domain myclient.com
Automatically a subdomain myclient.mycompany.com that points to the webroot of myclient.com is created.
Just check it on Subdomains page.
If your cpanel main domain is something else, go to the Addon Domains page and create myclient.com. Note the Document Root automatically generated (most probably /public_html/myclient.com) here or type your own Document Root and copy it.
and then create a subdomain myclient.mycompany.com by pasting myclient.com‘s Document Root in the Document Root field.
myclient.com will be accessible through myclient.mycompany.com
Hope that helps…
Peace be upon you…