Forum Moderators: phranque

Message Too Old, No Replies

SSI format in apache 2.2

         

cciardi

12:51 pm on Sep 2, 2009 (gmt 0)

10+ Year Member



Just upgraded webserver from 1.3.33 to 2.2.9 - Some old SSI code like the following now longer work. Notice the first line at the bottom has 4 dashes closing the SSI. On the 1.3.33 server it works fine. On 2.2.9 it produces the following error:

SSI directive was not properly finished at the end of parsed document

<!--#echo var="LAST_MODIFIED" ---->
Must now look like this
<!--#echo var="LAST_MODIFIED" -->

Just looking for some insight or possible config change I can make. I haven't been able to find any documentation that indicated this once was acceptable or has been deprecated.

jdMorgan

1:44 pm on Sep 2, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It depends on the SSI parser. The correct "closing syntax" has always been space, two hyphens, greater-than symbol. It is likely that your older server did not require the space, and/or ignored the extra hyphen, while the new server does not -- and so rejects that line because of the syntax error.

So it looks like several hours with a multi-file search and replace tool are called for. :(

And use of an HTML validator on all new pages in the future would be a very good idea...

Jim

Caterham

1:54 pm on Sep 2, 2009 (gmt 0)

10+ Year Member



See the SSIEndTag/SSIStartTag directives.