Microsoft IIS 6.0Administrator's Consultant

Unlike previous versions, Microsoft Internet Information Services (IIS) 6.0 is configured by default to serve only static content. This means the standard default configuration serves only static Hypertext Markup Language (HTML) documents. Before a Web server can serve any other type of document, the appropriate Web Service extension must be enabled.

Using Web Service Extensions

A Web Service extension is any type of nonstatic document or functionality that requires special processing. Web Service extensions that can be configured on IIS include:

IIS also makes use of Common Gateway Interface (CGI) and Internet Server Application Programming Interface (ISAPI) extensions. Generally speaking, CGI is enabled through a processing engine for a specific scripting language, such as Perl, that’s implemented as an ISAPI filter. IIS also makes use of ISAPI filters when processing some types of requests. ASP.NET requests are in fact handled by an ISAPI filter. You can configure ISAPI filters globally for all sites on a server through Web Sites properties or for individual Web sites through the individual site properties.

To enhance security, IIS 6 makes a distinction between known and unknown CGI/ISAPI extensions. By default, all unknown CGI and ISAPI extensions are prohibited, and you must specifically add and configure a CGI/ISAPI filter before it can be used. If you remove this restriction by allowing unknown CGI and ISAPI extensions to be used, filters that haven't been specifically added and configured might be used.

You configure Web Service extensions globally for all sites on a Web server using the Web Service Extensions node in the IIS snap-in. When you access the Web Service Extensions node, each extension that’s installed on the server is listed along with the status of the extension, as shown in Figure 4-1.

Figure 4-1: Use the Web Service Extensions node to allow or prohibit IIS to process various types of nonstatic content.

Allowing and Prohibiting Web Service Extensions

Web Service extensions can be individually allowed or prohibited. Allowing an extension tells IIS that requests for related content can be served and that the server can process the requests. Prohibiting an extension tells IIS that requests for related content shouldn’t be handled; instead, they should be rejected, as IIS does with requests for file extensions that it doesn’t recognize.

Allowing and prohibiting extensions is fairly straightforward using any of the following options:

Категории