I got the following error message in the Apache log:
unable to include potential exec "header.html" in parsed file /Users/sikusiku/Sites/ss-git/homepage.shtml
I basically tried to include header.html from homepage.shtml. I used the very basic directive in homepage.html (both header.html and homepage.shtml are located in the document root):
<!--#include virtual="header.html" -->
I think I have properly turned on the SSI in my httpd.conf:
Options Indexes FollowSymLinks ExecCGI Includes
...
AddType text/html .shtml
...
# XBitHack doesn't have anything to do with this, but I added it anyway.
XBitHack on
Did I miss anything? Does the included file i.e. header.html need to be configured differently?
I just fixed this problem myself on ubuntu sever 11.10 with apache2.
my /etc/apache2/sites-available/default file:
I changed AllowOverride None to All in /var/www directory directive.
my .htaccess file in /var/www/.htaccess:
finally i made sure that include.load was in the mods-enabled folder this is to load the mod_includes.so module.
That creates a symbolic link to the include.load in mods-available.
finally restart apache
That made it work for me, hope you get it working as well.
-- Thomas