Please help me to setup architecture one saas / multi tenant application.

I have one domain for example example.com on server 1 I am providing one one billing software in sub domain of example.com. For this i have created a wild card sub domain. and developed the software such way each domain will open respective customer billing software login screen.

Now the scenario is, what if i want to attach a new server, how can i create new sub domain on example.com for new client?

closed as unclear what you're asking by kasperd, Thomas, bodgit, Tommiie, Ward Feb 1 at 1:18

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


Easiest solution: Put up a reverse proxy in front of your servers that forwards to the correct one.

Not the answer you're looking for? Browse other questions tagged or ask your own question.