SSI (Server Side includes) don't working on IIS 10 (Windows 11)

232 views Asked by At
  1. IIS configured with Server Side includes
  2. Additionally processing SSI adding to config
  3. IIS handler mapping configured.
  4. SSI file present and I can see it in browser.

But SSI still don't working. And I see in browser

  <!--#include virtual="/Header.htm" -->

SSI configuration

What next? What I need more?

1

There are 1 answers

0
John14 On

Finally SSI started working in my environment after two command

 C:\Windows\System32>%windir%\system32\inetsrv\appcmd set config -section:asp -scriptErrorSentToBrowser:true
 Applied configuration changes to section "system.webServer/asp" for "MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST"

 C:\Windows\System32>%windir%\system32\inetsrv\appcmd set config -section:asp -enableParentPaths:true
 Applied configuration changes to section "system.webServer/asp" for "MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST"