2014年02月18日
Tengine 默认并未包含 ssi 模块,因此要重新编译,注意删除参数中的--without-http_ssi_module
.
然后在nginx.conf
中增加以下配置:
ssi on;
ssi_silent_errors on;
ssi_types text/shtml;
重启 Tengine 即可.
测试:
新建个 test.shtml ,内容为:
<!-- #echo var="DATE_LOCAL" -->
通过浏览器访问应该能看到当前时间.