* <strong>SSI</strong> is code executed by the server before a page is delivered. For example, you could automatically include a footer into an HTML document, or display its path and modification date.

* <strong>SSI</strong> is code executed by the server before a page is delivered. For example, you could automatically include a footer into an HTML document, or display its path and modification date.

Line 22:

Line 22:

* On OpenLink, you will need to locate these programs yourself for the time being.

* On OpenLink, you will need to locate these programs yourself for the time being.

Contents

Server Side Includes (SSI) and Redirection with thttpd

SSI is code executed by the server before a page is delivered. For example, you could automatically include a footer into an HTML document, or display its path and modification date.

Redirection means you request one document and are served another.

thttpd is the web server that comes with the Linkstation; the example configuration will assume you're using the second instance thttpd2, as described in Articles/GeneralThttpd. You might also find Articles/GeneralThttpdSSL useful for your web server.

Requirements

Thttpd comes with two auxiliary programs, "redirect" and "ssi", which we'll use to serve ".shtml" pages (as SSI enabled pages are usually called).

This example configuration for an LS1 will serve web content with from /mnt/share/www. On the LS2, you will probably use /mnt/hda/share/www instead.

On Debian, the programs "redirect" and "ssi" reside in /usr/lib/cgi-bin/ if "thttpd-util" is installed.

On OpenLink, you will need to locate these programs yourself for the time being.