I am by no means a pro in terms of networking and DNS stuff, but I know my share of stuff.
I am attempting to do the following. A customer's hosting doesn't have enough space and permissions to host a small site I am working on. So I am hosting the site on my own server. I want the final URL to be with the client's domain though. So what I did was create a CNAME on my client's hosting, pointing to a new subdomain on my server. Something like:
My subdomain: client.myhosting.com
CNAME on client's hosting: register.clientdomain.com -> client.myhosting.com
The pointing works fine but when I open register.clientdomain.com
instead of getting the content of client.myhosting.com
I get the root folder of myhosting.com
.
I've used this way of masking URLs with services like Instapage and Shopify, so I thought it would only make sense if I did it with a subdomain.
I've been in contact with the support guys from my hosting service, but I am not sure if they are not quite understanding me, if they don't know how to do this, or if I am wrong and it can't be done.
Am I missing some extra configuration or my host's not correctly configured?
[edit: comment on first response given indicates that this is cPanel and the question is thus how to configure a virtualhost alias using cPanel]