Wednesday, October 11, 2006

QA - IIS Websites vs Applications

Question:

Should we create multiple sites (perhaps one site for each of our home grown applications) or one site with many applications in it?

Answer:

The answer completely depends on your needs and requirements. Here are some food for thought.

You can view a website as something that has website features along with a "root" application named "/", so a website has a superset of features over an application. The line between an application and virtual directory is mostly a matter of ancient legacy starting with IIS6, so I will not distinguish between them much.

Considerations between website and application include:


  • Logging format/file/configuration is per-website, not per-app
  • SSL Server Certificate binding is per-website
  • Host header binding is per web-site
  • etc...

So, your considerations should contain the following:

IIS only provides per-website based logging, so if you need each application to have its own individual web server log file, then each application must be its own website. Of course, you can also write/find an ISAPI Filter which produces customized per-app Request Log File, but that's not a core component shipped with IIS.

If you are ok with https://server/app1 and https://server/app2 sending the same SSL Server Certificate as identification, then they can be applications on the same website. If you need them to send different SSL Server Certificates, then they must be on different websites since IIS supports only one SSL Server Certificate per website. Note that I say one SSL Server Certificate and NOT one SSL host per website... read the next option.

If you need https://app1.server.com and https://app2.server.com to send the same SSL Server Certificate as identification, then they can be applications on the same website using a wildcard SSL Certificate for *.server.com. This is possible starting with IIS6 on Windows Server 2003 SP1. They can also be applications on two different websites sending the same SSL Server Certificate.

If you need https://app1.com and https://app2.com, then they must be on different websites. IIS supports only one SSL Server Certificate per website, and you probably will not be able to get a *.com wildcard SSL Certificate... ;-)

Finally... since websites have a superset of features over application, it also uses a bit more memory resources. But, you probably do not need to worry about this difference unless you are talking about 10,000 websites...

So... it all depends on what you need. And this is just a subset of all the possible considerations.

//David

6 comments:

Anonymous said...

One of commonly accessories that pirates tend to be coming up with as far as replica louis vuitton handbags merchandises are generally concerned, lv handbag charms are generally the vast majority of widely pirated accessories that you may almost all likely find virtually all over the place. Which is why when I saw louis vuitton bag charm dubbed as Foxy Bag Charm, I fell in love with it in an instant.

Wildcard SSL Certificate said...

It is possible to analyze a pool to find a website (or a virtual application) using too much resources.

Anonymous said...

However, ugg boots which owns a array of acclaimed designers, not abandoned delights women by contemporary styles, but aswell by absolute abundance and practicality.Sheepskin ugg is absolutely crafted from wool. Many times, uggs are befuddled abroad because they get adulterated or channelled afterwards getting beat for one season, instead of acceptable out of date. There are lots of styles in the accumulating of affidavit ugg sundance , accoutrement tall, abbreviate and abate versions. Due to adaptable sheepskin, these ugg sundance boots do not get channelled or torn even admitting you bend and extend them times.

Cheap SSL Certificates said...

You have clear answer regarding topic and I like your post so thanks for this stuff.

Wildcard SSL said...

These kind of post are always inspiring and I prefer to read quality content so I happy to find many good point here in the post, writing is simply great, thank you for the post.

Cheapest SSL said...

it would be great if we analyze web site using applications on IIS before we launch it!