I am very new to the networking and server configuration so, I apologize if my question is very silly.
Basically, I have a site up and running and now I have decided to expand the site.
I have a domain named www.mydomain.example, now I want to create a similar page for different users. eg, user1.mydomain.example, user2.mydomain.example, user3.mydomain.example and so on.
The code is 80% similar for most of the users. So I was wondering if I can make the structure something like this:
How should I configure the routing? Will the CNAME configuration outlined work? If not, what is the best way to establish such architecture?
If web server changes are required, providing a simple example on how to get it going would be helpful.
I appreciate your help.