Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS Server Side Includes doesn't process ColdFusion

How can I use the Server Side Includes module in IIS to include and process a ColdFusion file from a .htm file? I'm currently doing something like this in my html file:

<!--#include virtual="navmenu.cfm"-->

This includes the raw contents of the navmenu file. I need it to execute the ColdFusion code and return the output of that process rather than including the raw ColdFusion code.

This same syntax works properly in Apache.

like image 767
Mark Avatar asked Jun 16 '26 08:06

Mark


1 Answers

Are you just trying to avoid the CFM extension in the URL?

You can't use SSI to include a CFM files into a static HTM file. You can configure IIS to send HTM files to the CF server to be parsed. This would allow you to use CFINCLUDE inside any HTM file.

Alternately, you can use ajax from your HTM file and load the parsed CFM content into a DIV.

like image 131
Adrian J. Moreno Avatar answered Jun 19 '26 08:06

Adrian J. Moreno