This is a test of server-side includes.

Here is a simple file inclusion:
Same file, but with a full pathname:
Something from a subdirectory:
Here is a virtual file inclusion:
Here is a trickier one:
Here is the last modified date:
Here it is again, with a modified format. Note that this time, we used the <!-- echo --> directive, with var="LAST_MODIFIED". BUG in standard server: the modified format doesn't take, though it does affect the DATE_LOCAL and DATE_GMT vars below.
.
Here is the size of this file:
And here it is again, with a modified format.
Here is the unescaped query string, which should be "query string": broken in standard httpd
And here is the same, escaped (a CGI var, just to test one of them): broken in standard httpd
Other include vars (all through <!--#echo -->):
DOCUMENT_URI
DOCUMENT_NAME
DATE_LOCAL
DATE_GMT
Here is the current date, as a shell command:
Now, we test configuring the error message, by setting it with <!--#config --> and then deliberately staging an error. You should see a complaint appropriate to a much more sophisticated piece of software than httpd (but one which, like httpd, came out of Urbana, Illinois).

Here is the environment seen by a <!--#exec cmd="foo"--> command:


Finally, we try including the output of a CGI script, and see what CGI vars it gets:

  

Note that this only works for ScriptAliased scripts --- it does not work if the script is ExecCGI (or RunScripts) out of a STD_DOCUMENT directory (i.e., not scriptaliased). But that's a bug in the standard server as well.