magazine resources subscribe about advertising

New Architect Daily
Commentary and updates on current events and technologies

CMP Media E-Book

Download your copy today.

Research
Search for reports and white papers from industry vendors and analysts.

This Week at NewArchitect.com Subscribe now to our free email newsletter and get notified when the site is updated with new articles







Day of Defeat Online Gaming

 New Architect > Archives > 1999 > 08 > Features

IIS and ISAPI

Managing IIS in a Shared-Server Environment Through the Use of ISAPI Filters

By Jay Frazier

It can be very difficult for a Web-hosting company to administer multiple sites within a shared-server hosting environment utilizing Microsoft Internet Information Server (IIS). Luckily, IIS provides the Internet Server Application Programming Interface (ISAPI), a mechanism that opens up server-request processing and lets administrators customize this processing through the use of ISAPI filters.

ISAPI filters are usually written in C and then compiled into dynamic link libraries (DLLs), which are loaded by the Web server on startup. The filters stay in memory until the server is shut down. In contrast, you may have heard of ISAPI extensions, which are loaded only when requested. When monitoring all incoming requests to a server -- as we'll do with the LogFilter tool presented later in this article -- a filter can often be more efficient than an extension because there's no loading/unloading overhead.

When a browser requests a document from IIS, a number of things happen. First, IIS reads the request data. Then it processes the HTTP headers. The URL gets mapped to a physical path, and so on until the server sends a response, writes to the log file, and closes the session. Unfortunately, when running in a shared-server environment, IIS has a quirky default action that causes requests to individual Web sites to be stored in individual log files. Sifting through each file in search of errors is tedious, especially for companies hosting hundreds of sites. This is a case in which a well-placed ISAPI filter can save administrators a lot of time.<>




  Day of Defeat Online Gaming

home | daily | current issue | archives | features | critical decisions | case studies | expert opinion | reviews | access | industry events | newsletter | research | careers | info centers | advertising | subscribe | subscriber service | editorial calendar | press | contacts


Copyright © 2006 CMP Media, LLC Read our privacy policy, your California privacy rights, terms of service.
SDMG Web sites: BYTE.com, C/C++ Users Journal, Developer Pipeline, Dr. Dobb's Journal, DotNetJunkies, MSDN Magazine, Sys Admin,
SD Expo, SD Magazine, SqlJunkies, The Perl Journal, Unixreview, Windows Developer Network, New Architect

web2