Web server (thttpd)

ID #1045

How can I use SSI?

SSI (Server Side Include) is a technique where a HTML document is first parsed by a program on the server (hence the name) before it is presented to the client (i.e. a browser).

This article describes how to set things up.


This page describes howto use Server Side Include or SSI using a special CGI program. The advantage of this solution is that it will work with almost any HTTP daemon with CGI support.

I've made a small tarball with the required binary (ssi.cgi) and a small demo, this is how you install it:
[Linux] cd /www
/mnt/router/www
[Linux] snarf http://dingetje.homeip.net/packages/ssi.tar.gz
http://dingetje.homeip.net/packages/ssi.tar.gz (6K)
ssi.tar.gz [########################] 6K | 2541.91K/s
6864 bytes transferred in 0.00 sec (1352.79k/sec)
[Linux] tar -zxvf ssi.tar.gz
cgi/
cgi/ssi.cgi
ssi/
ssi/hello.txt
ssi/ssi_demo.shtml
[Linux] rm ssi.tar.gz

 

Now point your favorite browser to http://your.domain.name/cgi/ssi.cgi/ssi/ssi_demo.shtml or if you don't have a dyndns domain name, then use the IP address of your FREESCO box to view the page, e.g. http://192.168.0.1/cgi/ssi.cgi/ssi/ssi_demo.shtml

The page to create this code looks like this

The HTMLized man page for the SSI program can be found here

And here is a tutorial to explain SSI in more detail.

Written for FREESCO by dingetje
Last edited: December 31, 2001 14:41

Last update: 2004-10-13 11:27
Author: Dingetje
Revision: 1.0

Print this record Print this record
Send to a friend Send to a friend
Show this as PDF file Show this as PDF file
Export as XML-File Export as XML-File

Please rate this entry:

Average rating: 4 from 5 (2 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry