Problems with server-side include (SSI) on Apache v2
I have a Red Hat Enterprise Linux box (v5) running Apache v2.0.
I think I have every option that I need set so that I can do SSIs, but for some reason, it does not work. I've included the contents of the files and am hoping that someone can help me out.
LoadModule include_module modules/mod_include.so
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Allow from all
In my "test" directory (http://server/test -- same as path above), I have 2 simple files.
Hello! My name is Inigo Montoya!
<!--#include virtual="./include.shtml" -->
<p>You killed my father. Prepare to die!
When I goto my test page, I do not get the text that is included in include.shtml. This works ok in Dreamweaver, but when uploaded to my server and run from there, it does not work. I do not see any errors in my apache logs.
Am I missing something obvious?
I think the pages calling the includes need to be named shtml (index.shtml) the includes themselves can be named .html. At least that is what I had to do and it worked but maybe I went against a rule of best practice.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)