IIS 7 Shared Hosting Summary

Damn! I love this blog post from Thomas, and you can easily noticed that IIS team has put lot of effort in shared hosting environment, from shared to delegated configuration, and all the way to process model improvements. The dynamicIdleThreshold for example is a fantastic feature for shared hosting, at first I got confused (while working on the IIS 7.0 Reskit Book) with the formula implementation, then Bill hooked me up with Fabio - the main guy behind the logic to give me the full picture about the idea/logic/formula about it. It actually took me a while to understand :) LOL, getting old...

Anyway, another related feature is called Process Gating, well this is not new and was actually in IIS 6.0, but not many know about it. Process gating grants you the ability to specify the maximum worker processes that allow to run concurrently in a machine, this prevent that too many worker processess running and eventually slow down / kill the entire server especially in high density hosting setup. Similar to number of web sites a particular box can support, you need to perform stress testing and trend analysis to understand the usage model,etc before deciding on the reasonable numbers of worker processes to limit and prevent too many worker processess choking the server.

How it works....
Similar to IIS 6.0, IIS 7.0 always performs a demand start for Web application, worker processes only invokes by Windows Process Activation Service (WAS) when the application pool receives the first incoming request. Before WAS initializes the new worker process, it first checks the total number of current running worker processes. If the total amount of worker processes (current + new one) is more than the maximum worker processes allowed, then the new worker process is not started and IIS keeps the request in the queue and wait until the number of worker processes drop below the limit and starts the new worker process.

How to configure....
There is no user interface to enable demandStartThreshold in RTM releases. But with the IIS 7.0 Admin Pack, I think it should be listed as one config item in the new configuration editor, my Vista box is not with me now, so can't verify this. Anyway, you can always configure this via AppCmd.exe. For example, to limit a total of 100 worker processes for a particular IIS 7.0 web server, try

appcmd set config /section:webLimits /demandStartThreshold:100

Upon successfully executing the command syntax, you will see the output shown as below.
Applied configuration changes to section "system.applicationHost/webLimits" for "MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST"

When WAS detects that it hits the demandStartThreshold limit, it writes a warning entry into the System event log. Take note that by default, process gating feature is not enabled, in the sense that the default total number of worker processes allowed is 2147483647 processes, which technically equivalent to no limit.

IIS FTP PassivePortRange

Years ago, I wrote the KB on passive port range at MSKB site -
How To Configure PassivePortRange In IIS
http://support.microsoft.com/?id=555022

Lazy to update the article for IIS 7.0 FTP detail, and I'm not going to add that here :)
Coz you can get it from Microsoft Support Team -
http://blogs.msdn.com/webtopics/archive/2008/05/14/limiting-passive-ftp-port-range-on-iis-7-0-iis-6-0-iis-5-0.aspx

One thing I recalled during testing in the past is that port range only valid from 5001 to 65535.

Posted by qbernard | with no comments

Security Alerts - April 2008 (Special)

Microsoft revised two security bulletins yesterday. One of which is related to .Net Framework published last year, not major update or new fixes but rather doc updates on changes related to releases of WinXP SP3.

On the other hand, in the recent Hack in the Box conference in Dubai, a new exploit in system account access token has been released to the public. This is related to the native design of current Windows access token in which entire OS is subjected to the vulnerability, and of coz IIS is part of it. Microsoft has released a new security advisory last week, take note that all Windows OSes are affected, ranging from XP, W2k3 and all the way to Vista and W2k8. The current mitigation is to stop using default built-in application pool identity and assign custom account identity for the worker processes.

Posted by qbernard | with no comments
Filed under: ,

IIS KBs - March 2008

948801 If an SMTP connector set the Outbound Security option to "Integrated Windows Authentication," the SMTP connector does not work in the IIS Metabase when you restore an Exchange Server 2003 server by using a Disaster Recovery mode
949455 System Center Operations Manager 2007 Reporting installation fails on a Windows Server 2008 computer if IIS 6.0 Management Compatibility is not installed

Posted by qbernard | with no comments
Filed under: ,

Security Alerts - April 2008

Oh well, been busy and no time to post this back then. In the routine patch Tuesday this month, Microsoft released 8 security bulletins with 5 of which in critical severity and one specific bulletin is related to IIS in a way. The 08-022 actually replaced the old fixes in 2006.

Summary: This security update resolves a privately reported vulnerability in the VBScript and JScript scripting engines in Windows. An attacker who successfully exploited this vulnerability could take complete control of an affected system. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights.

For more information, refer this. Take note that all existing Windows Scripting Engine 5.1/5.5/5.6 on W2k/XP/W2k3 are affected, while Vista/W2k8 are not affected.

Posted by qbernard | with no comments
Filed under: ,

Security Alerts - March 2008 (Special)

Today, Microsoft released a major revision for a vulneribility reported last year on .Net Framework. If you running framework version 1.0, 1.1 and 2.0. Please apply the fix asap.

Take note that even you are running 3.0, it is essentially using .Net Framework 2.0 runtime with extra bonus feature like WPF, WCF, etc. Hence, review the bulletin and take appropriate action.

Posted by qbernard | with no comments
Filed under: ,

IIS 7.0 Administration Pack!

Wow, what can I say? The IIS product team is really spending lot of effort you give you the best experience for IIS 7.0. Today, they released technical preview one for the brand new administration pack! you can take this as UI addon to various configuration in IIS 7.0 with some added features for you to get more out of IIS 7.0

Here's what you going to get if you installed it.

ASP.NET -
ASP.NET features - Authorization + Error pages for your .net authorization and custom error pages

IIS -
Request Filtering - the enchanced URLSCAN in IIS 7.0, this is the UI for you to configure it.
FastCGI - the UI for iisfcgi.dll configuration. this feature is at server level not site.
IIS Reports - fancy graphical chart for your site activities reports. you will need log parser installed for this to work.

Managment -
Configuration Editor - power full config file editor, much better than metabase explorer, allow you to search to entir hierarchy config tree, config locking etc.
IIS Database  Manager - one stop UI for you to manage all db connection in IIS 7.0, explorer type of navigation, let you manage db objects, etc.

Read the official Admin Pack walkthrough/doc
and of coz. download it here...... x86, x64.


 

Posted by qbernard | 2 comment(s)
Filed under: ,

IIS KBs - February 2008

949348 How to specify a custom location for the isolated configuration file in Internet Information Services 7.0
949349 Error message when you use Server Manager in IIS 7.0 to open a feature configuration page: "Cannot add duplicate collection entry"
949353 The Managed Pipeline Mode setting is not available after you configure an application pool to use the .NET Framework 1.1 in IIS 7.0
949350 You receive an HTTP 500 error message or a blank page appears when you request an ASP.NET resource or WCF resource that is hosted on a server that is running IIS 7.0
949351 You may receive an error message when you use an ASP.NET feature configuration page in IIS 7.0
949076 Opera browsers may crash if they use TLS to connect to an IIS 7.0 Web server that is running Windows Vista or Windows Server 2008

Posted by qbernard | with no comments
Filed under: ,

More IIS 7 Downloads

It is hot! with the official release of W2k8 / IIS 7.0, Microsoft has released more goodies for you to experience the new IIS 7.0 revolution, latest releases including the IIS 7.0 Manager or Remote Manager for Vista/XP/Win2k3, as well as the long awaiting WebDav extension for W2k8. And of coz, the best place to look for all IIS 7.0 related download is at iis.net, or get the latest release info via this RSS feed (feed not working yet).

Posted by qbernard | 1 comment(s)
Filed under: ,

Security Alerts - March 2008

In this month security bulletin, although all critical fixes are related to MS Office, one of the bulletin is related to Office Web Component and hence if you utilizing OWC in your web application, you need to apply the patch asap. Details:

Vulnerabilities in Microsoft Office Web Components Could Allow Remote Code Execution (933103)
http://support.microsoft.com/?id=933103

Affected software: Office2k (SP3), OfficeXP (SP3), VS.NET 2k2 (SP1), VS.NET 2k3 (SP1)
             server: Biztalk 2k + 2k2, Commerce 2k, ISA 2k (SP1)


Take note that Office2k3 SP2/SP3 are not affected.

Posted by qbernard | with no comments

IIS 7 Released !!!!

It is official now :) lazy to type.... head over to Bill Staples blog post for more info :)
Together with many great stuff from IIS team, including the new FTP component, FPSE, and Web Playlist :) (errr.. related to media server if you are in to media streaming)

Last but not least..... the IIS 7 Resource Kit book, well - this one still with the printing company :) should be at your major book store next month. I have the opportunity to write along with many IIS Gurus including Brett Hill, Mike Volodarsky and lot more. Be sure you get a copy asap!.

IIS KBs - January 2008

946086 ISAPI extensions that send long responses to the client may not transmit any output in Internet Information Services 7.0 until the session is closed
946517 FIX: You may be unable to manage IIS 6.0 by using Server Manager if two threads access IIS 6.0 at the same time
Posted by qbernard | with no comments
Filed under:
More Posts Next page »