|
Home > Archive > IIS Server > December 2004 > Creating Websites in IIS in code?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Creating Websites in IIS in code?
|
|
|
| Hi everyone.
I've developed an application that hosts multiple small business websites in
a hive... that is they share the same underlying service components such as
membership, content, security, e-commerce and so forth.
Currently the sites all operate from a single IIS website instance which
uses httpmodules to render the appropriate site.
Problem here is that this set-up limits the flexibility of the individual
site configuration and it cannot support some components such as payment
gateway handlers that need there own config file alteration.
The solution works fine running multiple websites from one host but I am
finding it very hard to keep all the sites in sync and each site now requires
allot more configuration and et cetra.
So I was wondering if someone could point me in the right direction for
using .NET to programmably configure iis, that is add new sites, httpmodules,
vdirectories and such...
All the best
Finni
-- Measure with a micrometer, mark with chalk and cut with an axe --
| |
| Kristofer Gafvert 2004-12-30, 7:56 am |
| Hello,
You can use for example ADSI or WMI to programmatically configure IIS.
There are plenty of examples available in the SDK:
http://msdn.microsoft.com/library/d...y/en-us/iissdk/
iis/ref_prog_iaoref.asp
There are also example scripts in the Script Center:
http://www.microsoft.com/technet/sc.../iis6/default.m
spx
Good luck!
--
Regards,
Kristofer Gafvert
www.ilopia.com
Finni wrote:
> Hi everyone.
>
> I've developed an application that hosts multiple small business
> websites in a hive... that is they share the same underlying service
> components such as membership, content, security, e-commerce and so
> forth.
>
> Currently the sites all operate from a single IIS website instance
> which uses httpmodules to render the appropriate site.
>
> Problem here is that this set-up limits the flexibility of the
> individual site configuration and it cannot support some components
> such as payment gateway handlers that need there own config file
> alteration.
>
> The solution works fine running multiple websites from one host but I
> am finding it very hard to keep all the sites in sync and each site
> now requires allot more configuration and et cetra.
>
> So I was wondering if someone could point me in the right direction
> for using .NET to programmably configure iis, that is add new sites,
> httpmodules, vdirectories and such...
>
> All the best
>
> Finni
>
>
> -- Measure with a micrometer, mark with chalk and cut with an axe --
|
|
|
|
|