Re: Server Side Includes
by "Beauford.2002" <beauford.2002(at)rogers.com>
|
Date: |
Mon, 6 Jan 2003 17:13:50 -0500 |
To: |
"jim barchuk" <jb(at)jbarchuk.com> |
Cc: |
"HWG Basics" <hwg-basics(at)hwg.org> |
References: |
p1 jbarchuk |
|
todo: View
Thread,
Original
|
|
Thanks. I have now enabled it and it works fine.
Beauford
----- Original Message -----
From: "jim barchuk" <jb(at)jbarchuk.com>
To: "Beauford.2002" <beauford.2002(at)rogers.com>
Cc: "HWG Basics" <hwg-basics(at)hwg.org>
Sent: Monday, January 06, 2003 1:04 PM
Subject: Re: Server Side Includes
> Hi Beauford.
>
> On Mon, 6 Jan 2003, Beauford.2002 wrote:
>
> > Hi,
> >
> > I'm just playing around here and trying to get <!--#include
> > file="xxxxx.html" --> to work with no luck. I am running Apache on
Slackware
> > Linux.......
>
> I have no familiarity with that specifically but they should all work the
> same way.
>
> > Do I have to enable SSI in Apache,
>
> It is probably not enabled by default.
>
> > and if so how would I check to see if
> > they are or arn't,
>
> Well, if your snippet below doesn't seem to work then it probably isn't
> enabled.
>
> > or is there something else I am missing. This seems to
> > simple to be having problems with.
>
> Use google.com, groups.google.com and the source of the software itself:
>
> http://httpd.apache.org/docs/misc/FAQ.html
>
> ...specifically section F. More specifically '# How do I enable SSI
> (parsed HTML)?':
>
> http://httpd.apache.org/docs/misc/FAQ.html#ssi-part-i
>
> BTW it's generally not a good idea to name -included- files as html,
> shtml, cgi, or other 'real' extensions. The reason is that they're not
> really a full/complete/functinal/operational html or cgi or whatever file.
> Someday down the road you're gonna look at one and say hey, what's wrong
> with this, why doesn't it work?? Better to name the includes .inc or .i or
> anything to totally differentiate it from 'html.'
>
> Have a :) day!
>
> jb
>
> >
> > I have created the simplest of files below as test files.
> >
> > TIA
> >
> > 1. header.html:
> >
> > <html>
> > <head>
> > <title>Your Site Name</title>
> > </head>
> > <body text=black link=blue alink=red vlink=purple>
> >
> > 2. index.shtml:
> >
> > <!--#include file="header.html" -->
> > <P>Biteme</P>
> > <!--#include file="footer.html" -->
> >
> > 3. footer.html:
> >
> > </body>
> > </html>
> >
> >
>
> --
> jim barchuk
> jb(at)jbarchuk.com
>
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA