Board logo

标题: apache环境下,shtml文件在火狐下显示原码 [打印本页]

作者: fangzhen    时间: 2012-12-24 16:16     标题: apache环境下,shtml文件在火狐下显示原码

首先
apache/conf/httpd.conf 文件里已经改成了这样
<IfModule dir_module>
    DirectoryIndex index.shtml  index.html index.php
</IfModule>

其次
httpd.conf
去掉
#AddType text/html .shtml
#AddOutputFilter INCLUDES .shtml
前面的注释#号

在Apache 2.0.6版本之前,添加
AddOutputFilter INCLUDES .shtml  

在Apache 2.0.6版本之后
修改Options Indexes FollowSymLinks为
Options Indexes FollowSymLinks Includes

已经测试过,通过!




欢迎光临 PHP开发笔记 (http://www.phpvi.com/) Powered by Discuz! 6.1.0