Setting Application Mappings

You can develop Web applications in a number of programming and scripting languages. Internet Information Server (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 the .asp extension causes the Web server to call the ASP program (Asp.dll) to process the request. The association of a file 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 Internet Service Manager, 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 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.

 

To remove an application mapping
bullet In the App Mappings property sheet, select the extension, and then click the Remove button. Requests for files with this extension will no longer be processed in this Web site or directory.

 


© 1997 by Microsoft Corporation. All rights reserved.