Forum Moderators: phranque
Verify that any AddType or AddHandler directives that you added are correct.
Jim
......
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options Indexes FollowSymLinks MultiViews ExecCGI Includes
........
........
<IfModule mod_dir.c>
DirectoryIndex index.html index.shtml
</IfModule>
........
........
# To use server-parsed HTML files
#
AddType text/html .shtml
AddHandler server-parsed .shtml
........
And still doesn't work. Now it doesn't prompt to save or open the file. It shows the file but doesn't show the include.
I have 2 files in htdocs
one index.html and it contains:
<!--#include virtual="myfile.html" -->
the other myfile.html and it contains some fluff.
Doesn't show anything. I tried to rename to .shtml although conf. file should accept .html extensions, but still nothing.
I used many tutorials and articles and they all tell pretty much the same. I don't know how but it worked few days ago. And doesn't work now.
It works ok with .php includes, but I want SSI not php.
I don't understand why I didn't succeed earlier. So here's what I've done, maybe for newbies like me it will help :
Changed
Options Indexes FollowSymLinks Multiviews
to:
-------------
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options Indexes FollowSymLinks Includes
--------------
There are couple of ares of "options" in the httpd.conf file, probably that was little confusing, if You change at least one wrong line, SSI may not work.
Then changed
----------------
#
# To use server-parsed HTML files
#
#AddType text/html .shtml
#AddHandler server-parsed .shtml
to
#
# To use server-parsed HTML files
#
AddType text/html .shtml
AddHandler server-parsed .shtml .html
------------------
Important, just add .html after "AddHandler server-parsed .shtml". In many articles read that I should add .html after "AddType text/html .shtml", but that's wrong. At least for me SSI's didn't work.
I think that's pretty much all You have to do if You're configuring apache under windows 98 SE like I did.
Good luck to all.