SSI Output Disappears After You Apply Security Patches (318176)
The information in this article applies to:
- Microsoft Internet Information Services 5.0
- Microsoft Internet Information Server 4.0
This article was previously published under Q318176 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: SYMPTOMS
When you execute a server-side include (SSI) program by using the <!--#exec cgi--> command on a server that is running either Microsoft Windows NT 4.0 with Service Pack 4 (SP4) or later applied or Microsoft Windows 2000 with Service Pack 2 (SP2) or later applied, the output of the program does not appear on the page. If you run the same program on an unpatched server, the output appears as expected.
CAUSE
After you apply these specified service packs, Internet Information Services (IIS) expects any SSI program that is executed by using the <!--#exec cgi--> command to follow the Common Gateway Interface (CGI) specification. This specification requires CGI programs to print a Content-Type HTTP header before any other output. IIS silently ignores this header and removes it from the final program output that it displays on the page. If the SSI program does not include this header, IIS executes the program but does not display any of its output. This is a change from the behavior of previous versions of Windows, which do not require these headers and which display any included HTTP headers on the page before the rest of the output from the SSI program.
RESOLUTION
You can make the output appear in one of two ways:
- Execute the program by using the <!--#exec cmd--> command instead of the <!--#exec cgi--> command.
-or-
- Rewrite the program to print the following line, followed by two new lines, before any other output:
STATUS
This behavior is by design.
REFERENCES
For more information about SSIs, see the "Server-Side Includes" topic in the IIS online documentation. To view this topic, locate Administration, locate Web Site Management, and then locate Server-Side Includes. The IIS online documentation is accessible through the following URL from any computer with the IIS documentation installed:
Modification Type: | Minor | Last Reviewed: | 6/22/2005 |
---|
Keywords: | kbpending kbprb KB318176 |
---|
|