apache 如何支持shtml
我的开发环境: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是虑拟目录