Date: Sun, 3 May 1998 13:44:39 +0200 From: "Ralf S. Engelschall" <rse@engelschall.com> To: Andreas Klemm <andreas@klemm.gtn.com>, Khetan Gajjar <khetan@iafrica.com>, freebsd-isp@FreeBSD.ORG Subject: Re: Adding footers automatically to served HTML pages Message-ID: <19980503134439.A10476@engelschall.com> In-Reply-To: <19980501163433.A26664@klemm.gtn.com>; from Andreas Klemm on Fri, May 01, 1998 at 04:34:33PM %2B0200 References: <Pine.BSF.3.96.980429011243.12700t-100000@chain> <19980501163433.A26664@klemm.gtn.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <rse@FreeBSD.ORG>.
>
> 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
<!--#include virtual="../common/footer.html"-->
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980503134439.A10476>
