Apache Today: Apache Guide: Introduction to Server Side Includes, Part 2 | Linux Today

Apache Today: Apache Guide: Introduction to Server Side Includes, Part 2

Written By
Web Webster
Web Webster
Jun 19, 2000

[ Thanks to Kevin
Reichard
for this link. ]

“This is the second of a three-article series on SSI. In the
first article, we talked about how to enable SSI on your server and
passed on some very basic examples. In this article, there will
be more examples, and we’ll talk about some somewhat more involved
things that you might want to do with SSI.
In the final
article, we’ll talk about the more advanced features of Apache SSI,
including conditional statements.”

“In the last article, we mentioned that you could use SSI to
inform the user when the document was most recently modified.
However, the actual method for doing that was left somewhat in
question. The following code, placed in your HTML document, will
put such a time stamp on your page.”

“Using an include file for a header and/or a footer can reduce
the burden of these updates. You just have to make one footer file,
and then include it into each page with the include SSI command.
The include element can determine what file to include with either
the file attribute, or the vitrual attribute. The file attribute is
a file path, relative to the current directory. That means that it
cannot be an absolute file path (starting with /), nor can it
contain ../ as part of that path. The virtual attribute is probably
more useful, and should specify a URL relative to the document
being served. It can start with a /, but must be on the same server
as the file being served.”


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.