From owner-freebsd-isp Thu Apr 30 07:52:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA20008 for freebsd-isp-outgoing; Thu, 30 Apr 1998 07:52:55 -0700 (PDT) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from marta.arcom.spb.su (marta.arcom.spb.su [195.190.100.18]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA19999 for ; Thu, 30 Apr 1998 07:52:51 -0700 (PDT) (envelope-from snar@marta.arcom.spb.su) Received: (from snar@localhost) by marta.arcom.spb.su (8.8.5/t/97-Mar-14) id SAA28949; Thu, 30 Apr 1998 18:52:25 +0400 (MSD) Message-ID: <19980430185224.53820@nevalink.ru> Date: Thu, 30 Apr 1998 18:52:24 +0400 From: Alexandre Snarskii To: Damon Reed Cc: freebsd-isp@FreeBSD.ORG Subject: Re: Adding footers automatically to served HTML pages References: <19980429220207.35806@nevalink.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88 In-Reply-To: ; from Damon Reed on Wed, Apr 29, 1998 at 01:43:19PM -0700 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, Apr 29, 1998 at 01:43:19PM -0700, Damon Reed wrote: > > > > > > But SSI's is the easiest way. Check www.apache.org and run a search on > > > it. > > > > It's easiest way in case when you or your co-workers writes these > > pages. In the situation, where you're have no control on web-publish > > ( i.e. you allow your users to upload their pages via ftp ) but > > have a need to add a footer to any page on your server it's not > > easiest way :) > > In the multi-user environment, if you are reading the Apache > materials you might also want to closely follow the parts regarding the > security issues involved with SSI. I think they may overstate the overt > hole that SSI represents, but still it is not something to be activated > lightly, especially if your understanding of the webserver execution and > operation environment is limited. Surely, that way slowers the performance of web server much more than SSI. But, that way is a good compromise between writing apache module, which will footify pages ( without significant processor/ io overhead ) and use some scripts with artifical intelligence which will footify these pages before requests to ones. > > > Really easiesh way is: > > > > AddHandler footers .html > > Action footers /cgi-bin/footers.html > > I would change the suffix of /cgi-bin/footers.html to something > such as .sh or .cgi, to avoid confusion ("Is this a web page, or is it a > script?") The distributed srm.conf that comes in the I tried that way on old apache 1.2.3 or so, and, if i changed the suffix to .cgi - apache gets Content-Type: _not_ text/html. May be that is fixed in newer versions - i did'nt tried it about halfyear. -- Alexandre Snarskii the source code is included To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message