主要是三个参数,ssi,ssi_silent_errors和ssi_types,均可以放在http,server和location的作用域下。 ssi on 开启ssi支持,默认是off ssi_silent_errors on 默认值是off,开启后在处理SSI文件出错时不输出错误提示:”[an error occurred while processing the directive] “ ssi_types 默认是ssi_types text/html,所以如果需要htm和html支持,则不需要设置这句,如果需要shtml支持,则需要设置:ssi_types text/shtml 确保你的服务器开启SSI 后安装插件即可。