Creating a custom domain for customers like Icasei does

Asked

Viewed 241 times

1

I created a system that generates a website for the customer, such as ICase. Example:

www.meusite.com.br/cliente1
www.meusite.com.br/cliente2
www.meusite.com.br/cliente3
www.meusite.com.br/cliente4

Exactly like the Icasei ago

Icasei has the option to generate a custom domain for the customer. Example:

www.ronaldocarol.com.br =>(pertence ao) www.meusite.com.br/cliente1
www.jessicaeleonardo.com.br =>(pertence ao) www.meusite.com.br/cliente2

I would like to know how to link this custom domain to the "Domain" of my site?

This setting I do on nginx?

1 answer

0


This has nothing to do with Nginx, at least it can be done without any relation to the nginx.

This could be a note from CNAME in DNS.

Having possession of the ronaldocarol.com.br you create a CNAME aimed at www.meusite.com.br/cliente1, this will be enough to display the content of meusite.com.br/cliente1 when access by ronaldocarol.com.br.

Depending on the DNS "server" you use, such as DNS Made Easy or CloudFlare, there are own Apis to change DNS automatically.

  • Thanks for the clarifications Inkeliz. I thought it was something on that side too. Thanks again.

  • could you give more details in your reply? how would these Apis?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.