Ah- that site has a couple things - under including a standard footer is this "comment" that would be in your HTML.

|<!--#include virtual="/footer.html" -->

That is an include that will find /footer.html in your document root and copy it into the stream being sent to the browser - it is not an SSI directive - see the paragraph below it, quoted here -

|"I'll frequently combine the last two things, putting a |LAST_MODIFIED| directive inside a footer file to be included. SSI directives can be contained in the included file, and includes can be nested - that is, the included file can include another file, and so on."

So LAST_MODIFIED is an SSI (server-side-include) directive that can be "included" in your footer.

Confusing enough? Heh! I LOVE when apps use the same words in different and related contexts.

One of the things you can do with the echo SSI command is display environment variables in your web page - for example, GMT date as here

<!--#echo var="DATE_GMT" -->


Here's the page in IBM's KnowledgeCenter that has the several SSI commands.

http://www-01.ibm.com/support/knowledgecenter/api/content/ssw_ibm_i_71/rzaie/rzaiessicommands.htm

HTH
Vern

On 6/12/2014 1:45 PM, Justin Taylor wrote:
So do I need to set Include at the global level as well as for my www root?


It's possible I'm misunderstanding, but to me the documentation sounds like just what I want.
See "Including a standard footer" at http://httpd.apache.org/docs/current/howto/ssi.html#additionalexamples


-----Original Message-----
From: Vernon Hamberg [mailto:vhamberg@xxxxxxxxxxxxxxx]
Sent: Thursday, June 12, 2014 11:07 AM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] Can't get Server Side Includes to work

Justin

The -Includes at the top means that you have turned of server side includes.

I wonder if you are confusing SSI vs includes of other files, whether html or css or whatever. SSI are part of the server, not separate snippets.

HTH
Vern




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.