Server-Side Includes Test Suite


This collection of links tests various features of server-side includes, including environment variable passing to server-side executed programs, and security access.

Example 1 - stuff.html [document source]

Example 1 contains server-side include references. If your server is configured to only parse documents with suffices .shtml, then there should be no SSI data in the returned document.

Example 2 - parse1.shtml [document source]

The document parse1.shtml is a parsed HTML document that tests echo var=, flastmod file=, flastmod virtual=, fsize file=, fsize virtual=, errmsg, timefmt, sizefmt, and simple exec cmd= bourne shell execs. File includes and CGI exec includes are tested in other files.

Example 3 - parse2.shtml

This example tests server-side includes, and CGI executes from within parsed HTML documents. In this test, the document inc_file.shtml is included in parse2.shtml.In addition, the document inc_file.shtml includes the program output from /cgi-bin/test_script.cgi.

Example 4 - Infinite Recursion Test

The program recurs_test.shtml test for infinite recursion of server-side includes.

Example 5 - main2.html

The document main2.html provides a test suite that tests CGI program execution. The interest here is only on security constraints, and on restricting where CGI programs are allowed to execute.