所谓的shtml是一种服务器动端包含技术(SSI)的html,
其配置方法为:
首先:
    AddType text/html .shtml
    AddHandler server-parsed .shtml然后再在location改为这样,
<location />
Options Indexes FollowSymLinks MultiViews Includes
allow from all
</location>

解决方案 »

  1.   

    在httpd.conf中加上了,怎么还不行呢?还需要设置其他地方吗?
      

  2.   

    sample: <!--#include virtual="footer.htm"-->楼主可以看看apache的manual啊,上面讲的很详细
      

  3.   

    screend(流浪小子) :我按你的方法试了,怎么就不行呢?
      

  4.   

    httpd.conf,你照上面的帖子改过了吗?有没有重新启动apache?
    footer.htm在不在这个目录下?
    如果是,没理由不可能的啊,我的server就是这么配置的
      

  5.   

    screend(流浪小子) :我没有用footer.htm这个文件测试,而是将其他文件改为shtml与htx,发现无法正常运行!
      

  6.   

    http://www.phpx.com/happy/showthread.php?s=&threadid=87684
      

  7.   

    爽快,我按照screend(流浪小子) 的设置成功了,谢谢!
      

  8.   

    补充一下:screend(流浪小子)的文档:
    <location />
    Options Indexes FollowSymLinks MultiViews Includes
    allow from all
    </location>
    这里的设置,在Apache最新的2.0.52版本中,
    是这个标签了:
    <Directory />
        Options FollowSymLinks MultiViews Includes
        AllowOverride None
        Allow from all
    </Directory>摸黑了半天,才搞定..与大家共分享.
    没分也不要紧..