httpd.conf 相关部分改为如下

加载模块 LoadModule include_module libexec/apache2/mod_include.so

 
  
  1. AddType text/html .shtml

  2. AddOutputFilter INCLUDES .html(如果是.shtml就是支持shtml)

  3. Options Indexes FollowSymLinks includes


使用语法
<!--#include virtual="test.html"-->
文件不存在将报一下错误
[an error occurred while processing this directive]