Question

CNAME other domain with my subdomain with masking

Hello, im stuck with a particular issue here. i have posted it here before, but didnt had time to follow up. now im really stuck and need solution badly.

you see i have a ecommerce solution where each of my customer have their own site hosted on my subdomain. eg. site1.mysite.com, site2.mysite.com

now i want to have my customers own domain to CNAME with my sub-domain. eg. www.domain1.com will work as site1.mysite.com, www.domain2.com will work as site2.mysite.com

i tried with cludflare few things, i added domain.com in cloudflare as CNAME Name(domain.com) Value (site1.mysite.com) it works actually, but when i type domain.com on browser, the url change to site1.mysite.com. is it possible to keep the url domain.com in browser something like url masking.

if its possible, please guide me a bit. if not possible in cloudflare, please suggest me how can i achieve that in alternative way.

thanks in advance.


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.

Hi @newbie

Nginx right? And which ecommerce system are you using? Can you post your Nginx server block of site1.mysite.com/domain.com? Change the domains if you want privacy.