I found this on the net and it helped me.. the entire page is located at
<a style='text-decoration: underline;' href="http://www.webdevtips.com/webdevtips/developer/serverstuff/include.shtml" target="_blank">http://www.webdevtips.com/webdevtips/developer/serverstuff/include.shtml</a>
Hope this helps! -- good luck!
To Enable Server Side Includes we have to do 2 things
1. We need to let the server know that we want to use includes. Open
DRIVE:\web\Apache2\conf\httpd.conf in a text editor (one that shows line
numbers makes this part easier)
line numbers will vary depending if you follow this guide or not but the
edits should be near the line number listed.
Line 267 change
from
Options Indexes FollowSymLinks ExecCGI
to
Options Indexes FollowSymLinks ExecCGI Includes
Remove the # from lines 793 and 794
from
#AddType text/html .shtml
#AddOutputFilter INCLUDES .shtml
to
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
If you have skipped the php section then you will need to also make sure
index.shtml is in the directory index line
DirectoryIndex index.html index.php index.shtml index.html.var
Save httpd.conf and restart the server (use Apache Service Monitor)
To test SSI we need to create 2 files
1.
--
<html>
<head>
<title>hello world</title>
</head>
<body>
<!--#include virtual="hello.inc"-->
</body>
</html>
--
Save it as DRIVE:\web\Apaches2\htdocs\hello.shtml
2.
--
<b>Hello World!</b>
--
Save it as DRIVE:\web\Apaches2\htdocs\hello.inc
Finally
Open your browser and type <a style='text-decoration: underline;' href="http://localhost/hello.shtml" target="_blank">http://localhost/hello.shtml</a> into the address
bar. If all has went well you should see the words Hello World! in your
browser.
You have successfully enabled SSI
"Mairhtin O'Feannag" <irishboyca DeleteThis @rocketmail.com> wrote in message
news:Xns94777C8DF2D27mairhtinofeannag@64.164.98.49...
> Hello,
>
> I have a problem, in that Server Side Includes are not being included. I
> have the server set up correctly (according to the book), with
>
> LoadModule include_module modules/mod_include.so
>
> <VirtualHost 67.117.74.180>
> ServerAdmin webmaster DeleteThis @mairhtin.com
> DocumentRoot /home/sfdesignsolutions
> ErrorLog /var/www/logs/testsfd.com-error.log
> CustomLog /var/www/logs/testsfd.com-access.log common
> ServerName mairhtin.com
<font color=purple> > ServerAlias <a style='text-decoration: underline;' href="http://www.mairhtin.com</font" target="_blank">www.mairhtin.com</font</a>>
> Options Indexes Includes FollowSymLinks
> DirectoryIndex index.php index.html index.htm index.shtml
> </VirtualHost>
>
> AddOutputFilter INCLUDES .shtml
>
> as presented by the book. What might I be doing wrong? Is there some
> way to test if SSI is occuring, short of coding an include and not seeing
> it happen?
>
> The include statement looks like this :
> <!--#include virtual="header.html" -->
>
> and header.html exists and is fine. If I copy it into the index.shtml,
> it shows up just find. But the include wont work.
>
> Mairhtin
><!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: trouble with Server Side Includes not working