Config for Enabling SSI nginx?

inputError picture inputError · Mar 9, 2013 · Viewed 11.7k times · Source

I want to do server side include and i have nginx server installed in my machine and i cant find a way to enable ssi in nginx.conf file? all i can find from the internet is

syntax: ssi on | off;
default:    
ssi off;
context:    http, server, location, if in location

Answer

inputError picture inputError · Mar 19, 2013

Enable ssi on the location context. In my case i want it on root

location / {
   ssi on;
}