We have developed a multi-tenant ASP.NET application. When a customer registers, they get their own subdomain to use for their site (e.g. tenant1.ourapp.com).
The process of setting up the customer's site needs to be configuration free.
Currently we have it set up like so:
- 1 x Dedicated IP Address for Website
- DNS A Record for *.ourapp.com to dedicated IP
- Single website in IIS (7.5) handling all requests to dedicated IP
The rest is handled by our application (inspecting url and loading tenant specific config etc.).
The big question is how can this scale? Let's say that I wanted to only host 50 tenant instances per physical website in IIS. I now have the problem that the original site is handling all requests for ourapp.com (thanks to the wildcard dns record).
We're also looking at Azure so a solution that works for both a standalone server and Azure would be golden!