Knowledge Base

IIS: Notes on Server-Side Includes (SSI) syntax

Article ID: 203064

Article Last Modified on 11/21/2006


APPLIES TO


This article was previously published under Q203064
We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:

SUMMARY

This article details some features that are available in the Microsoft implementation of Server-Side Include (SSI) files for Internet Information Server (IIS) and provides general syntax and examples for SSI directives.

MORE INFORMATION

SSI files are most commonly used with IIS to allow content authors to include the contents of one file inside another file, allowing the easy creation of script libraries or page headers and footers.

SSI files, like Active Server Pages (ASP) and Internet Data Connector (IDC) files, are script-mapped by file extension to a preprocessor dynamic-link library (DLL). In the case of SSI, the handler is Ssiinc.dll. SSI files are usually named with .stm file extensions, although extensions of .shtm and .shtml are also supported.

SSI is employed by the use of special preprocessing directives in SSI documents. These directives are parsed by the SSI DLL and processed. All directives are contained in HTML comment tokens and take the following general form:
<!--#<DIRECTIVE> [<ADDITIONAL DATA>]-->
				

Supported Directives

The following directives are supported in the IIS implementation of SSI:

More Information on File and Virtual Syntax

SSI directives that use file paths can reference files by using a file or virtual path.

REFERENCES

For additional information on using SSI with IIS, click the following article numbers to view the articles in the Microsoft Knowledge Base:

169996 To run an ISAPI DLL with #exec, use the CGI statement

166491 Secure batch files return access denied error message

195291 How to disable #exec in Server-Side Include files


Additional query words: iis ssi

Keywords: kbinfo KB203064