apache 2.4.1 无法解析shtml中的expr指令

来源:互联网 发布:淘宝客服接单流程 编辑:程序博客网 时间:2024/06/10 16:03

apache 2.4.1上运行内嵌<!--#if expr=${mobile}-->的shtml格式文件,在页面上提示一下错误:

[an error occurred while processing this directive]

SSI对shtml格式的配置是正常的,其他指令可以解析,能够执行cgi指令。

通过分析error_log文件,说是apache 无法解析expr指令。也许是因为版本的差异,需要在主配置文件httpd.conf中的DocumentRoot目录中

 

<Directory "/www">SSILegacyExprParser on</Directory>

配置完毕,重启,OK !
原创粉丝点击