In my .htaccess I have XBitHack on, and I have set chmod +x .index.html. Within index.html I have the following line of SSI: <!--#include file="./header.inc" -->. This works great.
Within header.inc I would like to also include more SSI to dynamically determine if an element should be of the active class. It looks like this: <!--#if expr="$DOCUMENT_NAME = index.html" --> class="active" <!--#endif -->. This works if the code is directly inside index.html, but not if the include is garned from SSI within index.html.
Did you set the x bit for the header.inc file too? If you want to process SSI inside header.inc, you'll need to do this.
Note also that if your Last-Modified dates are important to you -- if you are concerned with cacheability management -- you may want to look into using XBitHack Full and setting the Group x bit as well.
Yes I had done chmod +x header.inc. I just had the hunch to rename it to header.html and repeat the chmod and now it works. I'm not sure what the cause of this problem is, as I am not directing the server to process any specific type of file, but only those with the x bit set.
Perhaps I can go at this a more round-about way for the php files, and change the directory index for that folder to index.html, and inside index.html use SSI to do a virtual include of the php file. I'll try it when i get back =)