On Thu, Jul 2, 2009 at 9:01 AM, Hu Zhang<huzhang1982_at_gmail.com> wrote:
> virtual="/inc/header.shtm"-->, it works fine, but <!--#include
> file="/inc/header.shtm"-->, it reports "an error occurred while processing
> this directive". If I remove the slash in front of "/inc", it works fine. Do
> you know the reason?
Quoting the Apache httpd SSI doc:
"The file attribute is a file path, relative to the current directory. That
means that it cannot be an absolute file path (starting with /), nor can
it contain ../ as part of that path."
<
http://httpd.apache.org/docs/2.2/howto/ssi.html>
FWIW,
--
Hassan Schroeder ------------------------ hassan.schroeder_at_gmail.com