Enabling Server side includes in IIS7

July 22nd, 2009

A relatively little used feature now, but still important if your HTML passes server side includes. Mainly used for templated html structures which call various blocks of layout to the page, this feature is not enabled by default in IIS7.

To switch the feature on, firstly:
Control Panel > Programs and Features > Turn Windows Features On or Off

control panel

Next you need to enable the SSI feature as shown:

enabling ssi includes in IIS7 on Vista

If you’re in Vista -the next time you go into the Handler Mappings in IIS, you’ll see that .shtml, .shtm and .stm file types have been automatically added with the correctly configured handler. If you’re not using Vista, you may need to add these mappings yourself manually through the Add Module Mapping section.

Should be relatively easily tested by setting a test .shtml page to call another section using the standard include:

< !–#include file=”foo.html”– >

As long as the content of that file pulls through, you’ll know it’s working.


Trackback URI | Comments RSS

Leave a Reply

Name (required)

Email (required)

Website

Speak your mind