Setting Application Mappings

You can develop Web applications in 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 Internet Information Services snap-in, select the Web site or the starting point directory of an application.
  2. Open the directory's property sheets, and then click the Home Directory, Virtual Directory, or Directory tab.
  3. Click the Configuration button, and then click the App Mappings tab.
  4. Click Add, and 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.
  5. 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.
  6. 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.
  7. Important     In the App Mappings property sheet there is a column titled Verbs. In the 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
bullet In the App Mappings property sheet, select the file name extension, and then click the Remove button. Requests for files with this file name extension will no longer be processed in this Web site or directory.

© 1997-1999 Microsoft Corporation. All rights reserved.