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 !