Date: Thu, 30 Apr 1998 18:52:24 +0400 From: Alexandre Snarskii <snar@paranoia.ru> To: Damon Reed <dreed@value.net> Cc: freebsd-isp@FreeBSD.ORG Subject: Re: Adding footers automatically to served HTML pages Message-ID: <19980430185224.53820@nevalink.ru> In-Reply-To: <Pine.BSF.3.96.980429132629.4311A-100000@mercutio.value.net>; from Damon Reed on Wed, Apr 29, 1998 at 01:43:19PM -0700 References: <19980429220207.35806@nevalink.ru> <Pine.BSF.3.96.980429132629.4311A-100000@mercutio.value.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980430185224.53820>