From owner-freebsd-isp Sun May 3 04:47:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA22890 for freebsd-isp-outgoing; Sun, 3 May 1998 04:47:00 -0700 (PDT) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from slarti.muc.de (slarti.muc.de [193.174.4.10]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id EAA22884 for ; Sun, 3 May 1998 04:46:48 -0700 (PDT) (envelope-from rse@en1.engelschall.com) Received: (qmail 18970 invoked by uid 66); 3 May 1998 11:43:12 -0000 Received: by en1.engelschall.com (Sendmail 8.8.8) id NAA11251; Sun, 3 May 1998 13:44:39 +0200 (CEST) Message-ID: <19980503134439.A10476@engelschall.com> Date: Sun, 3 May 1998 13:44:39 +0200 From: "Ralf S. Engelschall" To: Andreas Klemm , Khetan Gajjar , freebsd-isp@FreeBSD.ORG Subject: Re: Adding footers automatically to served HTML pages Reply-To: rse@engelschall.com References: <19980501163433.A26664@klemm.gtn.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <19980501163433.A26664@klemm.gtn.com>; from Andreas Klemm on Fri, May 01, 1998 at 04:34:33PM +0200 Organization: Engelschall, Germany. X-Home: http://www.engelschall.com/ Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, May 01, 1998, Andreas Klemm wrote: > On Wed, Apr 29, 1998 at 01:14:05AM +0200, Khetan Gajjar wrote: > > I'd like to setup Apache to append a footer file to all HTML > > pages served by it. Any points on how to do this ? > > I'd ask Ralf Engelschall . > > I'm not sure, but maybe he has an idea. > Perhaps his web meta language may help you. > The i'd take a look at python ... > On their webpage I read something about meta styles > for multiple web pages ... Although I personally actually use Website META Language for footers (because I think this is an off-line task and there is no need to do it on-line) it can be done on-line via Apache, of course. I know if two practical and not too much complicated solutions: The first one is to use SSI (mod_include) with something like at the end of each HTML document. This is similar to WML's #include "../common/footer.wml" but is done on-line. The second solution is a little bit more automatic. Grab mod_trailer.c from ftp.apache.org (somewhere under contrib/modules/ I think). With it you can automatically add the footer.html to any documents which start with a specific URL prefix. I used this module a few years ago (it's an old module) and it worked fine for me. There are of course a lot more ways: You can use mod_action plus a CGI script to emulate mod_trailer or even write your own mod_perl-based handler. Oh, yes, for mod_perl there _is_ already such a handler: Apache::Sandwich ;-) It provides header and footer adding. Greetings, Ralf S. Engelschall rse@engelschall.com www.engelschall.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message