Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Apr 1998 13:43:19 -0700 (PDT)
From:      Damon Reed <dreed@value.net>
To:        freebsd-isp@FreeBSD.ORG
Subject:   Re: Adding footers automatically to served HTML pages
Message-ID:  <Pine.BSF.3.96.980429132629.4311A-100000@mercutio.value.net>
In-Reply-To: <19980429220207.35806@nevalink.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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
> > 
> > <!--#include footer.html-->
> > 
> > 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980429132629.4311A-100000>