I've got a 10 year old Apache server (FreeBSD) where the following works:
File1.htm
<!-- #set var="myDir" value="/dir" -->
File2.htm
<!-- #include virtual="File1.htm" --> //sets myDir
<!-- #include virtual="${myDir}/File3.htm" --> //loads /dir/File3.htm
File3.htm
<!-- #include virtual="${myDir}/File4.htm --> //loads /dir/File4.htm
On a very recent Suse Linux with the latest Apache, it seems that myDir is not defined in File3.htm, and thus it can't find and load File4.
So File2 can load File3, but File3 fails to load File4. It works in the 10-year old Apache on FreeBSD, but not on a recent Apache on Linux....
Any ideas?
EDIT For completeness' sake, this is basically the config file:
DocumentRoot "/srv/www/htdocs"
<Directory "/srv/www/htdocs">
Options Includes
AddType text/html .htm
AddOutputFilter INCLUDES .htm
AllowOverride None
Order allow,deny
Allow from all
</Directory>