nginxssi

Config for Enabling SSI nginx?


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

Solution

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

    location / {
       ssi on;
    }