我的开发环境:windows 2003 安装的是wamp
apache 版本是:2.2.8我在网上搜索一下,按照步骤做一来,显示空白
1 打开httpd.conf 文件,把
#AddType text/html .shtml  
#AddOutputFilter INCLUDES .shtml  把"#"号去掉2 在Options Indexes FollowSymLinks 后面加上Includes 保存文件重启服务,我的tree.shtml文件内容如下
1
test all<br />
2
        <!--#include file="js.html" -->
3
         
4
        no
js.html文件和tree.shtml 文件在同一个目录下http://localhost/myphoto/tree.shtml myphoto是虑拟目录

解决方案 »

  1.   

    重启了没有,
    不行的话,看一下apache日志
      

  2.   

    在httpd.conf中加入 
    <Directory   /var/www/html/example> 
        Options   Includes 
        AddType   text/html   .shtml 
        AddHandler   server-parsed   .shtml 
    </Directory> 
    example目录中的shtml文件就应当能够运行了 
      

  3.   


    找到答案了, 如果我用http://localhost/tree.shtml 游览是能够看到的http://localhost/myphoto/tree.shtml编辑虑拟目录myphoto Alias /myphoto/ "d:/photo/" <Directory "d:/photo/">
        Options Indexes FollowSymLinks MultiViews Includes 这里加上"Includes " 重启服务
        AllowOverride all
            Order allow,deny
        Allow from all
    </Directory>