我在Apache日志中的以下错误信息:服务器端包含
unable to include potential exec "header.html" in parsed file /Users/sikusiku/Sites/ss-git/homepage.shtml
我基本上是试图包括了header.html从homepage.shtml。我用了很基本的指令在homepage.html(包括了header.html和homepage.shtml位于文档根目录):
<!--#include virtual="header.html" -->
我想我已经正确地打开了SSI的我的httpd.conf:
Options Indexes FollowSymLinks ExecCGI Includes
...
AddType text/html .shtml
...
# XBitHack doesn't have anything to do with this, but I added it anyway.
XBitHack on
我错过了什么?包含的文件,即header.html是否需要配置不同?
你不需要XBitHack当你指定的文件SHTML。如果header.html与shtml在同一目录中,只需执行<! - #include file =“header.html” - > –
尝试virtual =“/ header.html”。除此以外;该错误似乎意味着一些权限错误。尝试chmod header.html不可执行。 – Gerben
不幸的是,这两个建议没有奏效。 – moey