From owner-freebsd-isp Wed Apr 29 13:42:27 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA24173 for freebsd-isp-outgoing; Wed, 29 Apr 1998 13:42:27 -0700 (PDT) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from mercutio.value.net (mercutio.value.net [204.188.125.89]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA24166 for ; Wed, 29 Apr 1998 13:42:22 -0700 (PDT) (envelope-from dreed@value.net) Received: from localhost (dreed@localhost) by mercutio.value.net (8.8.7/8.8.7) with SMTP id NAA04467 for ; Wed, 29 Apr 1998 13:43:19 -0700 (PDT) (envelope-from dreed@value.net) X-Authentication-Warning: mercutio.value.net: dreed owned process doing -bs Date: Wed, 29 Apr 1998 13:43:19 -0700 (PDT) From: Damon Reed 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: > On Wed, Apr 29, 1998 at 10:44:18AM -0400, Stunt Pope wrote: > > > > You could turn on SSI's (Server Side Includes) and then use > > > > > > > > at the bottom of all your pages. Personally I'd use something like > > php3 (cause I'm biased) since you can do a lot more with it than > > include footers. > > > > 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. > 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 standard apache distribution has a commented out section that essentially restates the above AddHandler, with some supporting comments. Actually, some of the best documentation for the server is in those files, as they are extensively commented througout. The aforementioned www.apache.org site also has a great deal of information, though be sure you are looking at the correct version of the docs for the release you have in service. *-----------------------------------*--------------------------------------* | There are none so blind as | Damon Reed | | those who will not read | *Value Net Internetworking* | | the documentation. | -Network Administrator- | | -DR | dreed@value.net | *-----------------------------------*--------------------------------------* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message