lighttpd forum lighty > how to deal with inc with mod_ssi?

Posted by Moon Ice
on 14.05.2008 10:12
What's my problem is :
In the html files i use <!--#include virtual="/path/111.inc"--> ,and the 
lighttpd can explain it, but if there is also contain another inc in the 
file 111.inc ,for example i have the code <!--#include 
virtual="/path/222.inc"--> in 111.inc ,222.inc can't display ,it will 
show the 222.inc codes in the html!

How can i deal with the .inc file which in the .inc file contain by html 
files??

What i do :
".inc"          =>      "text/html",

ssi.extension              = ( ".inc",".html",".shtml" )

but it dosn't work fine !
Posted by Olaf van der Spek
on 14.05.2008 12:22
Moon Ice wrote:
> but it dosn't work fine !

I think recursive inc isn't supported.
Posted by Moon Ice
on 15.05.2008 01:49
Olaf van der Spek wrote:
> Moon Ice wrote:
>> but it dosn't work fine !
> 
> I think recursive inc isn't supported.

oh,i see!
But what can i do then ? Can you tell me some...
Posted by Olaf van der Spek
on 15.05.2008 06:45
Moon Ice wrote:
> Olaf van der Spek wrote:
>> Moon Ice wrote:
>>> but it dosn't work fine !
>> 
>> I think recursive inc isn't supported.
> 
> oh,i see!
> But what can i do then ? Can you tell me some...

You could use PHP instead of SSI.