[This is preliminary documentation and subject to change]

# Setting Application Mappings

You can develop Web applications using a number of programming and scripting languages. Internet Information Services (IIS) uses the file name extension of a requested resource on your Web site to determine which ISAPI or CGI program to run to process a request. For example, a request for a file ending with an .asp extension causes the Web server to call the ASP program (Asp.dll) to process the request. The association of a file name extension with an ISAPI or CGI program is called application mapping. IIS is preconfigured to support common application mappings. You can add or remove mappings for all applications on a Web site or for individual applications.

To map an extension to an application

1. In the IIS snap-in, select the Web site or the starting point directory of an application.
2. Open the directory's property sheets, and click the Home Directory, Virtual Directory, or Directory tab.
3. Click the Configuration button.
4. On the App Mappings Property Sheet tab, click Add.
5. In the Executable box, type the path to the ISAPI or CGI program that will process the file. You must specify a program in a local directory on the Web server.
6. In the Extension box, type the file name extension you want to be associated with the ISAPI or CGI program. When the Web server receives a URL identifying a file with this extension, it calls the associated program to process the request.
7. To allow the processing for files of this type in a directory with Script permission, select the Script Engine check box. When a directory has Script permission set (instead of Execute permission), only files associated with applications that are designated script engines can be processed in the directory.

Important In the Mappings property sheet there is a column titled Verbs. In IIS 4.0, this column was entitled Exclusions; the change to verbs addresses future compatibility as more new HTTP verbs are added to the Hypertext Transport Protocol.

To remove an application mapping

In the Mappings property sheet, select the file name extension, and click the Remove button. Requests for files with this file name extension are no longer processed in this Web site or directory.

© 1997-2001 Microsoft Corporation. All rights reserved.