From owner-freebsd-isp Wed Apr 29 13:03:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA16074 for freebsd-isp-outgoing; Wed, 29 Apr 1998 13:03:42 -0700 (PDT) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from mercury.jorsm.com (mercury.jorsm.com [207.112.128.9]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA16050 for ; Wed, 29 Apr 1998 13:03:36 -0700 (PDT) (envelope-from jeff@mercury.jorsm.com) Received: from localhost (jeff@localhost) by mercury.jorsm.com (8.8.7/8.8.7) with SMTP id PAA28649 for ; Wed, 29 Apr 1998 15:03:36 -0500 (CDT) Date: Wed, 29 Apr 1998 15:03:36 -0500 (CDT) From: Jeff Lynch To: freebsd-isp@FreeBSD.ORG Subject: Re: Adding footers automatically to served HTML pages In-Reply-To: <19980429220207.35806@nevalink.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 "
" > 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