That's Great.
Aside from hard disk space what are the limitations of IIS in terms of the amount of sites that can be instantiated per server?
For examlpe would it be possible to have 100,000 sites on a single server?
If not would it be possible to have this process add sites to other servers as limiatations are reached?
Main Topics
Browse All Topics





by: BeakZPosted on 2008-02-15 at 05:35:24ID: 20901440
Creating a new website can be done by using System.DirectoryServices to access the IIS directory. You can also control all the settings for the Site definition this way too. We use this in our systems to automate the whole of our site setups. The following code might help.
As for registering a sub-domain, that would all depend on how you manage your NameServers. If you use BIND, you could automate creation and updating your Zone files, and reloading the zones. If you use a third-party, you would need to find out if they have a webservice or such like, to allow you to automate this process.
The code below isn't complete, but should get you connected to your IIS instance. If you want more code, I have a class library that wraps all this up nicely, just let me know.
Select allOpen in new window