Enabling Server-Side Includes

The Web server must detect that a file contains server-side include commands before processing the file. By default, the Web server is set up to process files with the .stm, .shtm, or .shtml file name extensions. You can disable the processing of server-side include directives for the entire Web server, for a Web site, for an application, or for an individual directory.

To enable server-side includes
  1. Give files that contain SSI directives an SSI file name extension (.stm, .shtm, or .shtml).
  2. You can add additional extensions; see Setting Application Mappings.

  3. Put SSI files into a directory with Scripts or Execute access permissions. For more information, see Setting NTFS Permissions for a Directory or File.

 

To disable server-side includes

If the Web server receives a request for a page with the removed SSI file name extension, it will not process server-side include directives within the page.

  1. In the IIS snap-in, select a Web site or directory, open its property sheets, and click the Home Directory or Directory tab. To disable SSI for an application, select the application starting point directory.
  2. Click the Configuration button.
  3. On the App Mappings tab, select the extension, and click Remove.

© 1997-2001 Microsoft Corporation. All rights reserved.