Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Apr 1998 15:03:36 -0500 (CDT)
From:      Jeff Lynch <jeff@mercury.jorsm.com>
To:        freebsd-isp@FreeBSD.ORG
Subject:   Re: Adding footers automatically to served HTML pages
Message-ID:  <Pine.BSF.3.95q.980429145827.20475B-100000@mercury.jorsm.com>
In-Reply-To: <19980429220207.35806@nevalink.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 29 Apr 1998, Alexandre Snarskii wrote:

> Really easiesh way is: 
> 
> AddHandler footers .html
> Action footers /cgi-bin/footers.html
> 
> in your srm.conf ( or httpd.conf, if you dont use srm ),
> where /cgi-bin/footers.html is _an executable_, like
> 
> ---------------- cut here ------------------------
> #!/bin/sh
> cat $PATH_TRANSLATED
> echo "<hr>"
> echo "this page is hoted by best Internet Provider in this region of Earth"
> --------------- and there ------------------------
> 
> This script must be located in your ScriptAlias directory.
> 
> PS: AddHandler contexts are: server config, virtual host, directory, .htaccess,
> so, if you have need to 'footify' only part of your server - 
> you can do it easily.

A busy server will incur a significant
perfomance hit having to execute this cgi for every .html file
served. The benefit is you can enforce it, of course.

=========================================================================
Jeffrey A. Lynch			      JORSM Internet
email: jeff@jorsm.com		Northwest Indiana's Full-Service Provider
Voice: (219)322-2180		   927 Sheffield Avenue, Dyer, IN 46311
Autoresponse: info@jorsm.com		   http://www.jorsm.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.980429145827.20475B-100000>