Listing 23-3 An SSI test page.
SSI directives look like HTML comments. They take the following general
form:
Because SSI directives look like comments, if SSI is improperly configured on
the server, the browser ignores the contents. Otherwise, the server creates properly formatted HTML output that Web browsers render properly. In Listing 23-3,
the first SSI directive is , which
uses the built-in exec command to execute ls -lh /var/www, embedding the
output of this command in tags to maintain the appropriate formatting. The second SSI directive, include virtual=/includes/footer
.html, includes a standard footer file. Finally, open the document in your
541
542
Chapter 23
Web browser, using the URL http://localhost/tests/ssitest.shtml
if accessing the server locally or http://your.server.name/tests
/ssitest.shtml if accessing the server remotely, replacing your
.server.name with the name of your Web server. Figure 23-2 shows how the
page appears in the Firefox Web browser.
As you can see in Fi